mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 11:55:49 +07:00
IB/srp: Remove unnecessary unlikely()
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa <igor.stoppa@huawei.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
parent
f794809a72
commit
882dff2890
@ -2708,7 +2708,7 @@ static void srpt_queue_response(struct se_cmd *cmd)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (unlikely(WARN_ON_ONCE(state == SRPT_STATE_CMD_RSP_SENT)))
|
if (WARN_ON_ONCE(state == SRPT_STATE_CMD_RSP_SENT))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* For read commands, transfer the data to the initiator. */
|
/* For read commands, transfer the data to the initiator. */
|
||||||
|
Loading…
Reference in New Issue
Block a user