diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-01-25 10:00:14 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-01-29 01:16:09 -0500 |
commit | f2aecc1d38ff26f972d8c825ccc1f5152b79e203 (patch) | |
tree | 3f7f7836dc134cd1a1eade42960fa78142b85d2f /drivers/scsi/fnic/vnic_wq.c | |
parent | db5db4b91cabcf57f3efd98d92d24ab875cde8ae (diff) | |
download | linux-f2aecc1d38ff26f972d8c825ccc1f5152b79e203.tar.gz linux-f2aecc1d38ff26f972d8c825ccc1f5152b79e203.tar.bz2 linux-f2aecc1d38ff26f972d8c825ccc1f5152b79e203.zip |
scsi: fnic: Remove set but not used variable 'vdev'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/scsi/fnic/vnic_wq.c: In function 'vnic_wq_alloc_bufs':
drivers/scsi/fnic/vnic_wq.c:50:19: warning:
variable 'vdev' set but not used [-Wunused-but-set-variable]
drivers/scsi/fnic/vnic_rq.c: In function 'vnic_rq_alloc_bufs':
drivers/scsi/fnic/vnic_rq.c:30:19: warning:
variable 'vdev' set but not used [-Wunused-but-set-variable]
Never used since introduction.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Satish Kharat <satishkh@cisco.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fnic/vnic_wq.c')
-rw-r--r-- | drivers/scsi/fnic/vnic_wq.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/fnic/vnic_wq.c b/drivers/scsi/fnic/vnic_wq.c index 74cfc567f657..015af2cdabaf 100644 --- a/drivers/scsi/fnic/vnic_wq.c +++ b/drivers/scsi/fnic/vnic_wq.c @@ -47,12 +47,9 @@ int vnic_wq_alloc_ring(struct vnic_dev *vdev, struct vnic_wq *wq, static int vnic_wq_alloc_bufs(struct vnic_wq *wq) { struct vnic_wq_buf *buf; - struct vnic_dev *vdev; unsigned int i, j, count = wq->ring.desc_count; unsigned int blks = VNIC_WQ_BUF_BLKS_NEEDED(count); - vdev = wq->vdev; - for (i = 0; i < blks; i++) { wq->bufs[i] = kzalloc(VNIC_WQ_BUF_BLK_SZ, GFP_ATOMIC); if (!wq->bufs[i]) { |