Re: [PATCH] target/configfs: Remove unnecessary null test

2014-07-29 Thread Nicholas A. Bellinger
Hi Himangi, On Thu, 2014-07-17 at 02:29 +0530, Himangi Saraogi wrote: > This patch removes the null test on lun_cg. lun_cg is initialized > at the beginning of the function to >lun_group. Since lun_cg is > dereferenced prior to the null test, it must be a valid pointer. > > The following

Re: [PATCH] target/configfs: Remove unnecessary null test

2014-07-29 Thread Nicholas A. Bellinger
Hi Himangi, On Thu, 2014-07-17 at 02:29 +0530, Himangi Saraogi wrote: 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

[PATCH] target/configfs: Remove unnecessary null test

2014-07-16 Thread Himangi Saraogi
This patch removes the null test on lun_cg. lun_cg is initialized at the beginning of the function to >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;

[PATCH] target/configfs: Remove unnecessary null test

2014-07-16 Thread Himangi Saraogi
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