Skip to content

Commit 1f4cf93

Browse files
tklauserdavem330
authored andcommitted
net: ena: Remove redundant unlikely()
IS_ERR() already implies unlikely(), so it can be omitted. Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 01ccdf1 commit 1f4cf93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/amazon/ena/ena_com.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ static struct ena_comp_ctx *ena_com_submit_admin_cmd(struct ena_com_admin_queue
315315
cmd_size_in_bytes,
316316
comp,
317317
comp_size_in_bytes);
318-
if (unlikely(IS_ERR(comp_ctx)))
318+
if (IS_ERR(comp_ctx))
319319
admin_queue->running_state = false;
320320
spin_unlock_irqrestore(&admin_queue->q_lock, flags);
321321

@@ -1130,7 +1130,7 @@ int ena_com_execute_admin_command(struct ena_com_admin_queue *admin_queue,
11301130

11311131
comp_ctx = ena_com_submit_admin_cmd(admin_queue, cmd, cmd_size,
11321132
comp, comp_size);
1133-
if (unlikely(IS_ERR(comp_ctx))) {
1133+
if (IS_ERR(comp_ctx)) {
11341134
if (comp_ctx == ERR_PTR(-ENODEV))
11351135
pr_debug("Failed to submit command [%ld]\n",
11361136
PTR_ERR(comp_ctx));

0 commit comments

Comments
 (0)