Skip to content

Commit e8d8aca

Browse files
KamalheibPaolo Abeni
authored andcommitted
net: ena: Remove unlikely() from IS_ERR() condition
IS_ERR() is already using unlikely internally. Signed-off-by: Kamal Heib <[email protected]> Acked-by: Arthur Kiyanovski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 81800ae commit e8d8aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ static int ena_alloc_rx_buffer(struct ena_ring *rx_ring,
545545

546546
/* We handle DMA here */
547547
page = ena_alloc_map_page(rx_ring, &dma);
548-
if (unlikely(IS_ERR(page)))
548+
if (IS_ERR(page))
549549
return PTR_ERR(page);
550550

551551
netif_dbg(rx_ring->adapter, rx_status, rx_ring->netdev,

0 commit comments

Comments
 (0)