]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IB/rxe: Use DEFINE_SPINLOCK() for spinlock
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 29 Oct 2016 16:19:33 +0000 (16:19 +0000)
committerDoug Ledford <dledford@redhat.com>
Mon, 12 Dec 2016 21:31:45 +0000 (16:31 -0500)
commit4ac4707102d9ea1ffc9b5735891f6c5ee3d236e5
tree7e6596290663334bf3a0639a749e7cf60d452b3f
parenta0fa72683e78979ef1123d679b1c40ae28bd9096
IB/rxe: Use DEFINE_SPINLOCK() for spinlock

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

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Leon Romanosky <leonro@mellanox.com>
Reviewed-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rxe/rxe_net.c