]> git.baikalelectronics.ru Git - kernel.git/commit
farsync: use DEFINE_SPINLOCK() for spinlock
authorLiu Jian <liujian56@huawei.com>
Fri, 26 Mar 2021 12:31:38 +0000 (20:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Mar 2021 22:25:44 +0000 (15:25 -0700)
commita1281601f88e924a2e8c7572065d3e9fecf3c3fb
treed6d2ed2707185366fa890804511d09585809aa0a
parentc3c97fd0ca6a7c2d566b2092010ed9e7ffcd4bb1
farsync: use DEFINE_SPINLOCK() for spinlock

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

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Liu Jian <liujian56@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/farsync.c