From: Julia Lawall Date: Wed, 20 Jan 2010 23:16:41 +0000 (-0800) Subject: ceph: remove duplicate variable initialization X-Git-Tag: v2.6.34-rc2~9^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec7384ec23dc5a9ea8733e90438e16b6066bfe1b;p=pandora-kernel.git ceph: remove duplicate variable initialization The variable client 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: Sage Weil --- Reading git-diff-tree failed