Commit e8d8acad authored by Kamal Heib's avatar Kamal Heib Committed by Paolo Abeni

net: ena: Remove unlikely() from IS_ERR() condition

IS_ERR() is already using unlikely internally.
Signed-off-by: default avatarKamal Heib <kheib@redhat.com>
Acked-by: default avatarArthur Kiyanovski <akiyano@amazon.com>
Link: https://lore.kernel.org/r/20240213161502.2297048-1-kheib@redhat.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 81800aef
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment