]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/iw_cxgb4: Use DEFINE_SPINLOCK() for spinlock
authorTang Yizhou <tangyizhou@huawei.com>
Wed, 31 Mar 2021 02:01:05 +0000 (10:01 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 31 Mar 2021 17:41:01 +0000 (14:41 -0300)
commit50f8300aefafd0be47270e3964d57d621410d1db
treeef73642aff17a8e904391d9cf6663f235a342cf5
parent2ee747008f4a519c3c650419d1cef2a6bd037a1d
RDMA/iw_cxgb4: Use DEFINE_SPINLOCK() for spinlock

spinlock can be initialized automatically with DEFINE_SPINLOCK() rather
than explicitly calling spin_lock_init().

Link: https://lore.kernel.org/r/20210331020105.4858-1-tangyizhou@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Tang Yizhou <tangyizhou@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/cxgb4/cm.c