Skip to content

Commit e18e9da

Browse files
YueHaibingmartinkpetersen
authored andcommitted
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>
1 parent 171e490 commit e18e9da

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎drivers/scsi/csiostor/csio_attr.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ csio_fcoe_alloc_vnp(struct csio_hw *hw, struct csio_lnode *ln)
497497
static int
498498
csio_fcoe_free_vnp(struct csio_hw *hw, struct csio_lnode *ln)
499499
{
500-
struct csio_lnode *pln;
501500
struct csio_mb *mbp;
502501
struct fw_fcoe_vnp_cmd *rsp;
503502
int ret = 0;
@@ -514,8 +513,6 @@ csio_fcoe_free_vnp(struct csio_hw *hw, struct csio_lnode *ln)
514513
goto out;
515514
}
516515

517-
pln = ln->pln;
518-
519516
csio_fcoe_vnp_free_init_mb(ln, mbp, CSIO_MB_DEFAULT_TMO,
520517
ln->fcf_flowid, ln->vnp_flowid,
521518
NULL);

0 commit comments

Comments
 (0)