[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240213161502.2297048-1-kheib@redhat.com>
Date: Tue, 13 Feb 2024 11:15:02 -0500
From: Kamal Heib <kheib@...hat.com>
To: netdev@...r.kernel.org,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>
Cc: Shay Agroskin <shayagr@...zon.com>,
David Arinzon <darinzon@...zon.com>,
Kamal Heib <kheib@...hat.com>
Subject: [PATCH net-next] net: ena: Remove unlikely() from IS_ERR() condition
IS_ERR() is already using unlikely internally.
Signed-off-by: Kamal Heib <kheib@...hat.com>
---
drivers/net/ethernet/amazon/ena/ena_netdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.c b/drivers/net/ethernet/amazon/ena/ena_netdev.c
index 03be2c008c4d..10e70d869cce 100644
--- a/drivers/net/ethernet/amazon/ena/ena_netdev.c
+++ b/drivers/net/ethernet/amazon/ena/ena_netdev.c
@@ -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,
--
2.43.0
Powered by blists - more mailing lists