diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2015-10-22 19:59:18 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-10-23 00:37:14 +0200 |
commit | 78fc3fc4cc33df385dd5e5e02630cf467790e758 (patch) | |
tree | 41c3afd1ebe31ce92b9cc4e86d07a107e1c41f9b /drivers/infiniband | |
parent | IB/core: Remove smac and vlan id from path record (diff) | |
download | linux-78fc3fc4cc33df385dd5e5e02630cf467790e758.tar.xz linux-78fc3fc4cc33df385dd5e5e02630cf467790e758.zip |
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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/iser/iscsi_iser.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c index 8f2f1057370c..3d0bdb87a653 100644 --- a/drivers/infiniband/ulp/iser/iscsi_iser.c +++ b/drivers/infiniband/ulp/iser/iscsi_iser.c @@ -126,7 +126,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); @@ -141,9 +140,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; |