RDMA/i40iw: Use DEFINE_SPINLOCK() for spinlock
authorYe Bin <yebin10@huawei.com>
Fri, 9 Apr 2021 09:51:47 +0000 (17:51 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 12 Apr 2021 18:37:38 +0000 (15:37 -0300)
commit8166e0090511275f0da13a09824bdb43c7972405
tree1da78815336ebbd3183b378db8026f1970f52a96
parent22efb0a8d130c6379c1eb64cbace1542b27e37ff
RDMA/i40iw: 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/20210409095147.2294269-1-yebin10@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/i40iw/i40iw_main.c