From: Julia Lawall Date: Thu, 11 Mar 2010 22:09:55 +0000 (-0800) Subject: [SCSI] bfa: eliminate useless code X-Git-Tag: v2.6.35-rc1~470^2^2~169 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4644efabde172808c0a8b6e3f17e4c204a4e52e7;p=pandora-kernel.git [SCSI] bfa: eliminate useless code The variable bfa_itnim 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: Jing Huang Signed-off-by: Andrew Morton Signed-off-by: James Bottomley --- Reading git-diff-tree failed