diff mbox series

[net-next] net: ena: Remove unlikely() from IS_ERR() condition

Message ID 20240213161502.2297048-1-kheib@redhat.com (mailing list archive)
State Accepted
Commit e8d8acad5a85b5ee3e9ec502357dbd8ac27b9015
Delegated to: Netdev Maintainers
Headers show
Series [net-next] net: ena: Remove unlikely() from IS_ERR() condition | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net-next
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 989 this patch: 989
netdev/build_tools success No tools touched, skip
netdev/cc_maintainers warning 5 maintainers not CCed: pabeni@redhat.com ndagan@amazon.com akiyano@amazon.com edumazet@google.com saeedb@amazon.com
netdev/build_clang success Errors and warnings before: 1006 this patch: 1006
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 1006 this patch: 1006
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/contest success net-next-2024-02-15--00-00 (tests: 1443)

Commit Message

Kamal Heib Feb. 13, 2024, 4:15 p.m. UTC
IS_ERR() is already using unlikely internally.

Signed-off-by: Kamal Heib <kheib@redhat.com>
---
 drivers/net/ethernet/amazon/ena/ena_netdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kiyanovski, Arthur Feb. 14, 2024, 7:51 a.m. UTC | #1
> -----Original Message-----
> From: Kamal Heib <kheib@redhat.com>
> Sent: Tuesday, February 13, 2024 6:15 PM
> To: netdev@vger.kernel.org; David S . Miller <davem@davemloft.net>; Jakub
> Kicinski <kuba@kernel.org>
> Cc: Agroskin, Shay <shayagr@amazon.com>; Arinzon, David
> <darinzon@amazon.com>; Kamal Heib <kheib@redhat.com>
> Subject: [EXTERNAL] [PATCH net-next] net: ena: Remove unlikely() from
> IS_ERR() condition
> 
> 
> 
> IS_ERR() is already using unlikely internally.
> 
> Signed-off-by: Kamal Heib <kheib@redhat.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
> 

Thanks for submitting this patch.

Acked-by: Arthur Kiyanovski <akiyano@amazon.com>
patchwork-bot+netdevbpf@kernel.org Feb. 15, 2024, 12:30 p.m. UTC | #2
Hello:

This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Tue, 13 Feb 2024 11:15:02 -0500 you wrote:
> IS_ERR() is already using unlikely internally.
> 
> Signed-off-by: Kamal Heib <kheib@redhat.com>
> ---
>  drivers/net/ethernet/amazon/ena/ena_netdev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
  - [net-next] net: ena: Remove unlikely() from IS_ERR() condition
    https://git.kernel.org/netdev/net-next/c/e8d8acad5a85

You are awesome, thank you!
diff mbox series

Patch

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,