From: Julia Lawall Date: Sat, 16 Jan 2010 15:59:22 +0000 (+0100) Subject: Staging: go7007: Eliminate useless code X-Git-Tag: v2.6.34-rc1~10^2~1^2~186 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f51f90300010937bc9a2455cef88366448a6e718;p=pandora-kernel.git Staging: go7007: Eliminate useless code The variable s 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: Greg Kroah-Hartman --- Reading git-diff-tree failed