diff mbox series

[2/2] scsi: csiostor: remove set but not used variable 'rln'

Message ID 1566568564-55636-3-git-send-email-zhengbin13@huawei.com (mailing list archive)
State Deferred
Headers show
Series scsi: csiostor: remove some set but not used variables | expand

Commit Message

Zheng Bin Aug. 23, 2019, 1:56 p.m. UTC
Fixes gcc '-Wunused-but-set-variable' warning:

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

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
---
 drivers/scsi/csiostor/csio_lnode.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--
2.7.4
diff mbox series

Patch

diff --git a/drivers/scsi/csiostor/csio_lnode.c b/drivers/scsi/csiostor/csio_lnode.c
index 66e58f0..7d18e99 100644
--- a/drivers/scsi/csiostor/csio_lnode.c
+++ b/drivers/scsi/csiostor/csio_lnode.c
@@ -1989,7 +1989,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);
@@ -2019,7 +2019,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 */