From: Julia Lawall Date: Sat, 16 Jan 2010 15:59:51 +0000 (+0100) Subject: USB: serial: Eliminate useless code X-Git-Tag: v2.6.34-rc1~215^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a45a1e07aa5e4d3dc952c264f87184c5ac8c0a62;p=pandora-kernel.git USB: serial: Eliminate useless code The variables priv and portdata are initialized twice to the same (side effect-free) expressions. Drop one initialization in each case. 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: Greg Kroah-Hartman --- Reading git-diff-tree failed