From e28b0f09bca2430cc59327876a7c2f6945f4d06c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 29 Jul 2012 14:19:54 +0000 Subject: [PATCH] qla2x00t: Remove a wrong check because it could lead to skipping unlocking (merge r4380 from trunk) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4436 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t/qla2x00-target/qla2x00t.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qla2x00t/qla2x00-target/qla2x00t.c b/qla2x00t/qla2x00-target/qla2x00t.c index aab09da9f..13c3b00af 100644 --- a/qla2x00t/qla2x00-target/qla2x00t.c +++ b/qla2x00t/qla2x00-target/qla2x00t.c @@ -2553,8 +2553,7 @@ static int q2t_pre_xmit_response(struct q2t_cmd *cmd, /* Does F/W have an IOCBs for this request */ res = q2t_check_reserve_free_req(ha, full_req_cnt); - if (unlikely(res != SCST_TGT_RES_SUCCESS) && - (xmit_type & Q2T_XMIT_DATA)) + if (unlikely(res != SCST_TGT_RES_SUCCESS)) goto out_unlock_free_unmap; out: