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)
commit2e919a32ae1150208251129480370fd44a624a55
treeef73642aff17a8e904391d9cf6663f235a342cf5
parent7f13e0be3694744292a4b75d56fd43055a30f59f
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