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 'pln'

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

drivers/scsi/csiostor/csio_attr.c: In function 'csio_fcoe_free_vnp':
drivers/scsi/csiostor/csio_attr.c:500:21: warning:
variable 'pln' set but not used [-Wunused-but-set-variable]

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

YueHaibing and committed by
Martin K. Petersen
e18e9dac 171e4909

-3
-3
drivers/scsi/csiostor/csio_attr.c
··· 497 497 static int 498 498 csio_fcoe_free_vnp(struct csio_hw *hw, struct csio_lnode *ln) 499 499 { 500 - struct csio_lnode *pln; 501 500 struct csio_mb *mbp; 502 501 struct fw_fcoe_vnp_cmd *rsp; 503 502 int ret = 0; ··· 512 513 ret = -ENOMEM; 513 514 goto out; 514 515 } 515 - 516 - pln = ln->pln; 517 516 518 517 csio_fcoe_vnp_free_init_mb(ln, mbp, CSIO_MB_DEFAULT_TMO, 519 518 ln->fcf_flowid, ln->vnp_flowid,