Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.com
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

YueHaibing and committed by
Martin K. Petersen
63f565aa cfcbae38

+1 -2
+1 -2
drivers/scsi/csiostor/csio_lnode.c
··· 1992 1992 csio_ln_init(struct csio_lnode *ln) 1993 1993 { 1994 1994 int rv = -EINVAL; 1995 - struct csio_lnode *rln, *pln; 1995 + struct csio_lnode *pln; 1996 1996 struct csio_hw *hw = csio_lnode_to_hw(ln); 1997 1997 1998 1998 csio_init_state(&ln->sm, csio_lns_uninit); ··· 2022 2022 * THe rest is common for non-root physical and NPIV lnodes. 2023 2023 * Just get references to all other modules 2024 2024 */ 2025 - rln = csio_root_lnode(ln); 2026 2025 2027 2026 if (csio_is_npiv_ln(ln)) { 2028 2027 /* NPIV */