Commit 61d5556a authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman

scsi: qedi: remove set but not used variables 'cdev' and 'udev'

[ Upstream commit d0adee5d ]

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

drivers/scsi/qedi/qedi_iscsi.c: In function 'qedi_ep_connect':
drivers/scsi/qedi/qedi_iscsi.c:813:23: warning: variable 'udev' set but not used [-Wunused-but-set-variable]
drivers/scsi/qedi/qedi_iscsi.c:812:18: warning: variable 'cdev' set but not used [-Wunused-but-set-variable]

These have never been used since introduction.
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarManish Rangankar <mrangankar@marvell.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a5900464
...@@ -809,8 +809,6 @@ qedi_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr, ...@@ -809,8 +809,6 @@ qedi_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr,
struct qedi_endpoint *qedi_ep; struct qedi_endpoint *qedi_ep;
struct sockaddr_in *addr; struct sockaddr_in *addr;
struct sockaddr_in6 *addr6; struct sockaddr_in6 *addr6;
struct qed_dev *cdev = NULL;
struct qedi_uio_dev *udev = NULL;
struct iscsi_path path_req; struct iscsi_path path_req;
u32 msg_type = ISCSI_KEVENT_IF_DOWN; u32 msg_type = ISCSI_KEVENT_IF_DOWN;
u32 iscsi_cid = QEDI_CID_RESERVED; u32 iscsi_cid = QEDI_CID_RESERVED;
...@@ -830,8 +828,6 @@ qedi_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr, ...@@ -830,8 +828,6 @@ qedi_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr,
} }
qedi = iscsi_host_priv(shost); qedi = iscsi_host_priv(shost);
cdev = qedi->cdev;
udev = qedi->udev;
if (test_bit(QEDI_IN_OFFLINE, &qedi->flags) || if (test_bit(QEDI_IN_OFFLINE, &qedi->flags) ||
test_bit(QEDI_IN_RECOVERY, &qedi->flags)) { test_bit(QEDI_IN_RECOVERY, &qedi->flags)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment