infiniband: scsi: remove unnecessary unlikely()
Subsystems (2)
PATCH 1/1 infiniband: scsi: remove unnecessary unlikely()
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another.
Signed-off-by Igor Stoppa <[email protected]>
Reviewed-by Bart Van Assche <[email protected]>
Cc [email protected] (open list:SCSI RDMA PROTOCOL (SRP) TARGET)
Cc [email protected] (open list)
--- drivers/infiniband/ulp/srpt/ib_srpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/ulp/srpt/ib_srpt.c +1 -1
@@ -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. */
Signature · 1 line
2.17.1
Jason Gunthorpe
AppliedQuoted 10 lines · Igor Stoppa
WARN_ON()already contains anunlikely(), so it's not necessary to wrap it into another.Signed-off-by Igor Stoppa <[email protected]>Reviewed-by Bart Van Assche <[email protected]>Cc [email protected] (open list:SCSI RDMA PROTOCOL (SRP) TARGET)Cc [email protected] (open list)--- drivers/infiniband/ulp/srpt/ib_srpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to for-next, thanks
Jason