Commit 882dff28 authored by Igor Stoppa's avatar Igor Stoppa Committed by Jason Gunthorpe

IB/srp: Remove unnecessary unlikely()

WARN_ON() already contains an unlikely(), so it's not necessary to wrap it
into another.
Signed-off-by: default avatarIgor Stoppa <igor.stoppa@huawei.com>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent f794809a
...@@ -2708,7 +2708,7 @@ static void srpt_queue_response(struct se_cmd *cmd) ...@@ -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. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment