From: Julia Lawall Date: Mon, 18 Jan 2010 08:29:19 +0000 (-0800) Subject: drivers/net: Eliminate useless code X-Git-Tag: v2.6.34-rc1~233^2~559 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ae3111eafd797e24cc390bb5ce6a8fa0deacdb2;p=pandora-kernel.git drivers/net: Eliminate useless code The variable qdev 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed