Skip to content

Commit 78fc3fc

Browse files
Bart Van Asschedledford
authored andcommitted
IB/iser: Remove an unused variable
Detected this by compiling with W=1. Signed-off-by: Bart Van Assche <[email protected]> Cc: Sagi Grimberg <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent 10e07f1 commit 78fc3fc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/infiniband/ulp/iser/iscsi_iser.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ iscsi_iser_recv(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
126126
{
127127
int rc = 0;
128128
int datalen;
129-
int ahslen;
130129

131130
/* verify PDU length */
132131
datalen = ntoh24(hdr->dlength);
@@ -141,9 +140,6 @@ iscsi_iser_recv(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
141140
iser_dbg("aligned datalen (%d) hdr, %d (IB)\n",
142141
datalen, rx_data_len);
143142

144-
/* read AHS */
145-
ahslen = hdr->hlength * 4;
146-
147143
rc = iscsi_complete_pdu(conn, hdr, rx_data, rx_data_len);
148144
if (rc && rc != ISCSI_ERR_NO_SCSI_CMD)
149145
goto error;

0 commit comments

Comments
 (0)