From: Julia Lawall Date: Sat, 21 Nov 2009 15:53:16 +0000 (+0100) Subject: fs/ceph: Move a dereference below a NULL test X-Git-Tag: v2.6.34-rc2~9^2~113 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32c895e776a0dd2cb701d60fbd6440280c09ce35;p=pandora-kernel.git fs/ceph: Move a dereference below a NULL test If the NULL test is necessary, then the dereference should be moved below the NULL test. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/). // @@ type T; expression E; identifier i,fld; statement S; @@ - T i = E->fld; + T i; ... when != E when != i if (E == NULL) S + i = E->fld; // Signed-off-by: Julia Lawall Signed-off-by: Sage Weil --- Reading git-diff-tree failed