net: ena: Remove unlikely() from IS_ERR() condition
authorKamal Heib <kheib@redhat.com>
Tue, 13 Feb 2024 16:15:02 +0000 (11:15 -0500)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 15 Feb 2024 12:24:21 +0000 (13:24 +0100)
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>
drivers/net/ethernet/amazon/ena/ena_netdev.c

index a77c380c9202f2611b304d2aea59410a3f1dab2b..2d28e97b2cf34f336535c3cd5ede6918fa8466a5 100644 (file)
@@ -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,