IB/iser: Remove an unused variable
Detected this by compiling with W=1. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
10e07f13c0
commit
78fc3fc4cc
|
@ -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,
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue