projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81800ae
)
net: ena: Remove unlikely() from IS_ERR() condition
author
Kamal Heib
<kheib@redhat.com>
Tue, 13 Feb 2024 16:15:02 +0000
(11:15 -0500)
committer
Paolo 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/amazon/ena/ena_netdev.c
b/drivers/net/ethernet/amazon/ena/ena_netdev.c
index a77c380c9202f2611b304d2aea59410a3f1dab2b..2d28e97b2cf34f336535c3cd5ede6918fa8466a5 100644
(file)
--- 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,