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;
|
||||
}
|
||||
|
||||
if (unlikely(WARN_ON_ONCE(state == SRPT_STATE_CMD_RSP_SENT)))
|
||||
if (WARN_ON_ONCE(state == SRPT_STATE_CMD_RSP_SENT))
|
||||
return;
|
||||
|
||||
/* For read commands, transfer the data to the initiator. */
|
||||
|
|
Loading…
Reference in New Issue