Commit 63f565aa authored by YueHaibing's avatar YueHaibing Committed by Martin K. Petersen

scsi: csiostor: Remove set but not used variable 'rln'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/scsi/csiostor/csio_lnode.c: In function 'csio_ln_init':
drivers/scsi/csiostor/csio_lnode.c:1995:21: warning:
 variable 'rln' set but not used [-Wunused-but-set-variable]

It is never used since introduction, so remove it.

Link: https://lore.kernel.org/r/20191029061530.98197-1-yuehaibing@huawei.comSigned-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent cfcbae38
...@@ -1992,7 +1992,7 @@ static int ...@@ -1992,7 +1992,7 @@ static int
csio_ln_init(struct csio_lnode *ln) csio_ln_init(struct csio_lnode *ln)
{ {
int rv = -EINVAL; int rv = -EINVAL;
struct csio_lnode *rln, *pln; struct csio_lnode *pln;
struct csio_hw *hw = csio_lnode_to_hw(ln); struct csio_hw *hw = csio_lnode_to_hw(ln);
csio_init_state(&ln->sm, csio_lns_uninit); csio_init_state(&ln->sm, csio_lns_uninit);
...@@ -2022,7 +2022,6 @@ csio_ln_init(struct csio_lnode *ln) ...@@ -2022,7 +2022,6 @@ csio_ln_init(struct csio_lnode *ln)
* THe rest is common for non-root physical and NPIV lnodes. * THe rest is common for non-root physical and NPIV lnodes.
* Just get references to all other modules * Just get references to all other modules
*/ */
rln = csio_root_lnode(ln);
if (csio_is_npiv_ln(ln)) { if (csio_is_npiv_ln(ln)) {
/* NPIV */ /* NPIV */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment