diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2015-03-29 08:52:08 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-04-08 02:27:51 -0400 |
commit | fb140271414be416c5d13d2a16a96fbe6e8cde01 (patch) | |
tree | a9526b50d84f422ce901c7cc3fecfab7c835d643 | |
parent | b859203473d5d61260e8447915e22328442deb0b (diff) |
iser-target: Remove redundant local variable
No need for this assignment.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
-rw-r--r-- | drivers/infiniband/ulp/isert/ib_isert.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c index 5b086b3ba9a9..ae09561f7399 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c | |||
@@ -1385,13 +1385,12 @@ isert_rx_opcode(struct isert_conn *isert_conn, struct iser_rx_desc *rx_desc, | |||
1385 | { | 1385 | { |
1386 | struct iscsi_hdr *hdr = &rx_desc->iscsi_header; | 1386 | struct iscsi_hdr *hdr = &rx_desc->iscsi_header; |
1387 | struct iscsi_conn *conn = isert_conn->conn; | 1387 | struct iscsi_conn *conn = isert_conn->conn; |
1388 | struct iscsi_session *sess = conn->sess; | ||
1389 | struct iscsi_cmd *cmd; | 1388 | struct iscsi_cmd *cmd; |
1390 | struct isert_cmd *isert_cmd; | 1389 | struct isert_cmd *isert_cmd; |
1391 | int ret = -EINVAL; | 1390 | int ret = -EINVAL; |
1392 | u8 opcode = (hdr->opcode & ISCSI_OPCODE_MASK); | 1391 | u8 opcode = (hdr->opcode & ISCSI_OPCODE_MASK); |
1393 | 1392 | ||
1394 | if (sess->sess_ops->SessionType && | 1393 | if (conn->sess->sess_ops->SessionType && |
1395 | (!(opcode & ISCSI_OP_TEXT) || !(opcode & ISCSI_OP_LOGOUT))) { | 1394 | (!(opcode & ISCSI_OP_TEXT) || !(opcode & ISCSI_OP_LOGOUT))) { |
1396 | isert_err("Got illegal opcode: 0x%02x in SessionType=Discovery," | 1395 | isert_err("Got illegal opcode: 0x%02x in SessionType=Discovery," |
1397 | " ignoring\n", opcode); | 1396 | " ignoring\n", opcode); |