aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/iscsi_tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/iscsi_tcp.c')
-rw-r--r--drivers/scsi/iscsi_tcp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c
index ecba606e6521..65df908019fd 100644
--- a/drivers/scsi/iscsi_tcp.c
+++ b/drivers/scsi/iscsi_tcp.c
@@ -755,11 +755,7 @@ iscsi_tcp_hdr_dissect(struct iscsi_conn *conn, struct iscsi_hdr *hdr)
755 opcode = hdr->opcode & ISCSI_OPCODE_MASK; 755 opcode = hdr->opcode & ISCSI_OPCODE_MASK;
756 /* verify itt (itt encoding: age+cid+itt) */ 756 /* verify itt (itt encoding: age+cid+itt) */
757 rc = iscsi_verify_itt(conn, hdr, &itt); 757 rc = iscsi_verify_itt(conn, hdr, &itt);
758 if (rc == ISCSI_ERR_NO_SCSI_CMD) { 758 if (rc)
759 /* XXX: what does this do? */
760 tcp_conn->in.datalen = 0; /* force drop */
761 return 0;
762 } else if (rc)
763 return rc; 759 return rc;
764 760
765 debug_tcp("opcode 0x%x ahslen %d datalen %d\n", 761 debug_tcp("opcode 0x%x ahslen %d datalen %d\n",