scsi: csiostor: Remove set but not used variable 'rln'
authorYueHaibing <yuehaibing@huawei.com>
Tue, 29 Oct 2019 06:15:30 +0000 (06:15 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 13 Nov 2019 03:21:34 +0000 (22:21 -0500)
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.com
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/csiostor/csio_lnode.c

index 23cbe4c..74ff8ad 100644 (file)
@@ -1992,7 +1992,7 @@ static int
 csio_ln_init(struct csio_lnode *ln)
 {
        int rv = -EINVAL;
-       struct csio_lnode *rln, *pln;
+       struct csio_lnode *pln;
        struct csio_hw *hw = csio_lnode_to_hw(ln);
 
        csio_init_state(&ln->sm, csio_lns_uninit);
@@ -2022,7 +2022,6 @@ csio_ln_init(struct csio_lnode *ln)
                 * THe rest is common for non-root physical and NPIV lnodes.
                 * Just get references to all other modules
                 */
-               rln = csio_root_lnode(ln);
 
                if (csio_is_npiv_ln(ln)) {
                        /* NPIV */