From: Himangi Saraogi Date: Wed, 16 Jul 2014 20:59:53 +0000 (+0530) Subject: target/configfs: Remove unnecessary null test X-Git-Tag: fixes-against-v3.18-rc2~19^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1ea97fef0cd579fd7ef3851548e068eaf2ad9f0;p=pandora-kernel.git target/configfs: Remove unnecessary null test This patch removes the null test on lun_cg. lun_cg is initialized at the beginning of the function to &lun->lun_group. Since lun_cg is dereferenced prior to the null test, it must be a valid pointer. The following Coccinelle script is used for detecting the change: @r@ expression e,f; identifier g,y; statement S1,S2; @@ *e = &f->g <+... f->y ...+> *if (e != NULL || ...) S1 else S2 Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed