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:
Igor Stoppa 2018-08-31 23:16:45 +03:00 committed by Jason Gunthorpe
parent f794809a72
commit 882dff2890

View File

@ -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. */