Skip to content

Commit

Permalink
net: ena: Remove unlikely() from IS_ERR() condition
Browse files Browse the repository at this point in the history
IS_ERR() is already using unlikely internally.

Signed-off-by: Kamal Heib <kheib@redhat.com>
Acked-by: Arthur Kiyanovski <akiyano@amazon.com>
Link: https://lore.kernel.org/r/20240213161502.2297048-1-kheib@redhat.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
  • Loading branch information
Kamal Heib authored and Paolo Abeni committed Feb 15, 2024
1 parent 81800ae commit e8d8aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/amazon/ena/ena_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ static int ena_alloc_rx_buffer(struct ena_ring *rx_ring,

/* We handle DMA here */
page = ena_alloc_map_page(rx_ring, &dma);
if (unlikely(IS_ERR(page)))
if (IS_ERR(page))
return PTR_ERR(page);

netif_dbg(rx_ring->adapter, rx_status, rx_ring->netdev,
Expand Down

0 comments on commit e8d8aca

Please sign in to comment.