projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10e07f1
)
IB/iser: Remove an unused variable
author
Bart Van Assche
<
[email protected]
>
Thu, 22 Oct 2015 17:59:18 +0000
(10:59 -0700)
committer
Doug Ledford
<
[email protected]
>
Thu, 22 Oct 2015 22:37:14 +0000
(18:37 -0400)
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]
>
drivers/infiniband/ulp/iser/iscsi_iser.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/ulp/iser/iscsi_iser.c
b/drivers/infiniband/ulp/iser/iscsi_iser.c
index 8f2f1057370c800230e4f276834030b6b6e46d10..3d0bdb87a6531a276b7719b757788b96f7e3bae1 100644
(file)
--- 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;