mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue