summaryrefslogtreecommitdiffstats
path: root/drivers/target/tcm_fc
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2014-07-16 22:59:53 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2014-09-15 23:20:00 +0200
commite1ea97fef0cd579fd7ef3851548e068eaf2ad9f0 (patch)
treef4b6a173ae8defceececc6e86d5675f6d22dfe1a /drivers/target/tcm_fc
parentLinux 3.17-rc5 (diff)
downloadlinux-e1ea97fef0cd579fd7ef3851548e068eaf2ad9f0.tar.xz
linux-e1ea97fef0cd579fd7ef3851548e068eaf2ad9f0.zip
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 <himangi774@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/tcm_fc')
0 files changed, 0 insertions, 0 deletions