Commit 78fc3fc4 authored by Bart Van Assche's avatar Bart Van Assche Committed by Doug Ledford

IB/iser: Remove an unused variable

Detected this by compiling with W=1.
Signed-off-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 10e07f13
...@@ -126,7 +126,6 @@ iscsi_iser_recv(struct iscsi_conn *conn, struct iscsi_hdr *hdr, ...@@ -126,7 +126,6 @@ iscsi_iser_recv(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
{ {
int rc = 0; int rc = 0;
int datalen; int datalen;
int ahslen;
/* verify PDU length */ /* verify PDU length */
datalen = ntoh24(hdr->dlength); datalen = ntoh24(hdr->dlength);
...@@ -141,9 +140,6 @@ iscsi_iser_recv(struct iscsi_conn *conn, struct iscsi_hdr *hdr, ...@@ -141,9 +140,6 @@ iscsi_iser_recv(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
iser_dbg("aligned datalen (%d) hdr, %d (IB)\n", iser_dbg("aligned datalen (%d) hdr, %d (IB)\n",
datalen, rx_data_len); datalen, rx_data_len);
/* read AHS */
ahslen = hdr->hlength * 4;
rc = iscsi_complete_pdu(conn, hdr, rx_data, rx_data_len); rc = iscsi_complete_pdu(conn, hdr, rx_data, rx_data_len);
if (rc && rc != ISCSI_ERR_NO_SCSI_CMD) if (rc && rc != ISCSI_ERR_NO_SCSI_CMD)
goto error; goto error;
......
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