diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2010-08-27 16:41:56 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-28 15:37:03 -0700 |
commit | 762c29164e2850d8c5e4c258cef0077b2584d111 (patch) | |
tree | 4cb5c25ce87578386f751dbcd3e46b6eba3cb716 /drivers/firewire/Makefile | |
parent | 034de00b06fe2b2c451f7435414f15c1b625e6b0 (diff) | |
download | talos-obmc-linux-762c29164e2850d8c5e4c258cef0077b2584d111.tar.gz talos-obmc-linux-762c29164e2850d8c5e4c258cef0077b2584d111.zip |
econet: kill unnecessary spin_lock_init()
The spinlock aun_queue_lock is initialized statically. It is unnecessary
to initialize by spin_lock_init() at module load time.
This is detected by the semantic patch.
// <smpl>
@def@
declarer name DEFINE_SPINLOCK;
identifier spinlock;
@@
DEFINE_SPINLOCK(spinlock);
@@
identifier def.spinlock;
@@
- spin_lock_init(&spinlock);
// </smpl>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Julia Lawall <julia@diku.dk>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/firewire/Makefile')
0 files changed, 0 insertions, 0 deletions