Remove wrong check, which can lead to missed lock unlock

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4380 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2012-06-28 01:48:19 +00:00
parent e8f04d3f1c
commit 8e093c8367

View File

@@ -2545,8 +2545,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: