From: Akinobu Mita Date: Fri, 27 Aug 2010 16:41:56 +0000 (+0000) Subject: econet: kill unnecessary spin_lock_init() X-Git-Tag: v2.6.37-rc1~147^2~644 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=762c29164e2850d8c5e4c258cef0077b2584d111;p=pandora-kernel.git 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. // @def@ declarer name DEFINE_SPINLOCK; identifier spinlock; @@ DEFINE_SPINLOCK(spinlock); @@ identifier def.spinlock; @@ - spin_lock_init(&spinlock); // Signed-off-by: Akinobu Mita Cc: Julia Lawall Cc: "David S. Miller" Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller --- Reading git-diff-tree failed