scsi: csiostor: Remove set but not used variable 'pln'
authorYueHaibing <yuehaibing@huawei.com>
Fri, 25 Jan 2019 01:57:19 +0000 (01:57 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 1 Feb 2019 23:19:56 +0000 (18:19 -0500)
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>
drivers/scsi/csiostor/csio_attr.c

index 8a004036e3d72a666d3f49e22ee83539f165ba75..017423b09669c3bcb057890167c66349420e5eea 100644 (file)
@@ -497,7 +497,6 @@ out:
 static int
 csio_fcoe_free_vnp(struct csio_hw *hw, struct csio_lnode *ln)
 {
-       struct csio_lnode *pln;
        struct csio_mb  *mbp;
        struct fw_fcoe_vnp_cmd *rsp;
        int ret = 0;
@@ -514,8 +513,6 @@ csio_fcoe_free_vnp(struct csio_hw *hw, struct csio_lnode *ln)
                goto out;
        }
 
-       pln = ln->pln;
-
        csio_fcoe_vnp_free_init_mb(ln, mbp, CSIO_MB_DEFAULT_TMO,
                                   ln->fcf_flowid, ln->vnp_flowid,
                                   NULL);