From: Julia Lawall Date: Thu, 21 Jan 2010 10:43:20 +0000 (-0800) Subject: net/sctp: Eliminate useless code X-Git-Tag: v2.6.34-rc1~233^2~537 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09cb47a2c68f9596927bc05dab0453edb35cd32d;p=pandora-kernel.git net/sctp: Eliminate useless code The variable newinet 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 Acked-by: Vlad Yasevich Signed-off-by: David S. Miller --- Reading git-diff-tree failed