From: Julia Lawall Date: Thu, 4 Aug 2011 10:29:32 +0000 (+0200) Subject: fs/ext2/balloc.c: delete useless initialization X-Git-Tag: v3.2-rc1~86^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e3d6ca0bf91bcce0453fff9b597154ff6bb9731;p=pandora-kernel.git fs/ext2/balloc.c: delete useless initialization Delete nontrivial initialization that is immediately overwritten by the result of an allocation function. The semantic match that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ type T; identifier i; expression e; @@ ( T i = \(0\|NULL\|ERR_PTR(...)\); | -T i = e; +T i; ) ... when != i i = \(kzalloc\|kcalloc\|kmalloc\)(...); // Signed-off-by: Julia Lawall Signed-off-by: Jan Kara --- Reading git-diff-tree failed