From: Julia Lawall Date: Fri, 5 Mar 2010 21:42:47 +0000 (-0800) Subject: drivers/misc/iwmc3200top/main.c: eliminate useless code X-Git-Tag: v2.6.34-rc1~130 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08d9e7363b87a4c5fb3fc17070607a75a9eb4cc8;p=pandora-kernel.git drivers/misc/iwmc3200top/main.c: eliminate useless code The variable priv is initialized twice to the same (side effect-free) expression. Drop one initialization. A simplified version of the semantic match that finds this problem is: (http://coccinelle.lip6.fr/) // @forall@ idexpression *x; identifier f!=ERR_PTR; @@ x = f(...) ... when != x ( x = f(...,<+...x...+>,...) | * x = f(...) ) // Signed-off-by: Julia Lawall Cc: Tomas Winkler Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed