Detected this by compiling with W=1.

Signed-off-by: Bart Van Assche <[email protected]>
Cc: Sagi Grimberg <[email protected]>
---
 drivers/infiniband/ulp/iser/iscsi_iser.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c 
b/drivers/infiniband/ulp/iser/iscsi_iser.c
index 1ace5d8..92ab48f 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.c
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.c
@@ -121,7 +121,6 @@ iscsi_iser_recv(struct iscsi_conn *conn, struct iscsi_hdr 
*hdr,
 {
        int rc = 0;
        int datalen;
-       int ahslen;
 
        /* verify PDU length */
        datalen = ntoh24(hdr->dlength);
@@ -136,9 +135,6 @@ iscsi_iser_recv(struct iscsi_conn *conn, struct iscsi_hdr 
*hdr,
                iser_dbg("aligned datalen (%d) hdr, %d (IB)\n",
                        datalen, rx_data_len);
 
-       /* read AHS */
-       ahslen = hdr->hlength * 4;
-
        rc = iscsi_complete_pdu(conn, hdr, rx_data, rx_data_len);
        if (rc && rc != ISCSI_ERR_NO_SCSI_CMD)
                goto error;
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to