diff mbox series

[net-next] net: ena: Remove redundant assignment

Message ID 20240213031718.2270350-1-kheib@redhat.com (mailing list archive)
State Accepted
Commit 723615a14b870ab48d92dc39483043022ef05e12
Delegated to: Netdev Maintainers
Headers show
Series [net-next] net: ena: Remove redundant assignment | 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, 7 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-14--09-00 (tests: 1438)

Commit Message

Kamal Heib Feb. 13, 2024, 3:17 a.m. UTC
There is no point in initializing an ndo to NULL, therefor the
assignment is redundant and can be removed.

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

Comments

Brett Creeley Feb. 13, 2024, 4:10 a.m. UTC | #1
On 2/12/2024 7:17 PM, Kamal Heib wrote:
> Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
> 
> 
> There is no point in initializing an ndo to NULL, therefor the
> assignment is redundant and can be removed.
> 
> Signed-off-by: Kamal Heib <kheib@redhat.com>


Reviewed-by: Brett Creeley <brett.creeley@amd.com>

> ---
>   drivers/net/ethernet/amazon/ena/ena_netdev.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.c b/drivers/net/ethernet/amazon/ena/ena_netdev.c
> index 1c0a7828d397..88d7e785e10f 100644
> --- a/drivers/net/ethernet/amazon/ena/ena_netdev.c
> +++ b/drivers/net/ethernet/amazon/ena/ena_netdev.c
> @@ -2867,7 +2867,6 @@ static const struct net_device_ops ena_netdev_ops = {
>          .ndo_get_stats64        = ena_get_stats64,
>          .ndo_tx_timeout         = ena_tx_timeout,
>          .ndo_change_mtu         = ena_change_mtu,
> -       .ndo_set_mac_address    = NULL, >          .ndo_validate_addr      = eth_validate_addr,
>          .ndo_bpf                = ena_xdp,
>          .ndo_xdp_xmit           = ena_xdp_xmit,
> --
> 2.43.0
> 
>
Kiyanovski, Arthur Feb. 13, 2024, 9:18 a.m. UTC | #2
> -----Original Message-----
> From: Brett Creeley <bcreeley@amd.com>
> Sent: Tuesday, February 13, 2024 6:11 AM
> To: Kamal Heib <kheib@redhat.com>; 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>
> Subject: RE: [EXTERNAL] [PATCH net-next] net: ena: Remove redundant
> assignment
> 
> CAUTION: This email originated from outside of the organization. Do not click
> links or open attachments unless you can confirm the sender and know the
> content is safe.
> 
> 
> 
> On 2/12/2024 7:17 PM, Kamal Heib wrote:
> > Caution: This message originated from an External Source. Use proper
> caution when opening attachments, clicking links, or responding.
> >
> >
> > There is no point in initializing an ndo to NULL, therefor the
> > assignment is redundant and can be removed.
> >
> > Signed-off-by: Kamal Heib <kheib@redhat.com>
> 
> 
> Reviewed-by: Brett Creeley <brett.creeley@amd.com>
> 

Thanks for submitting this commit.

Nit: therfor=>therefore

Otherwise,

Acked-by: Arthur Kiyanovski <akiyano@amazon.com>
patchwork-bot+netdevbpf@kernel.org Feb. 14, 2024, 11 a.m. UTC | #3
Hello:

This patch was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Mon, 12 Feb 2024 22:17:18 -0500 you wrote:
> There is no point in initializing an ndo to NULL, therefor the
> assignment is redundant and can be removed.
> 
> Signed-off-by: Kamal Heib <kheib@redhat.com>
> ---
>  drivers/net/ethernet/amazon/ena/ena_netdev.c | 1 -
>  1 file changed, 1 deletion(-)

Here is the summary with links:
  - [net-next] net: ena: Remove redundant assignment
    https://git.kernel.org/netdev/net-next/c/723615a14b87

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 1c0a7828d397..88d7e785e10f 100644
--- a/drivers/net/ethernet/amazon/ena/ena_netdev.c
+++ b/drivers/net/ethernet/amazon/ena/ena_netdev.c
@@ -2867,7 +2867,6 @@  static const struct net_device_ops ena_netdev_ops = {
 	.ndo_get_stats64	= ena_get_stats64,
 	.ndo_tx_timeout		= ena_tx_timeout,
 	.ndo_change_mtu		= ena_change_mtu,
-	.ndo_set_mac_address	= NULL,
 	.ndo_validate_addr	= eth_validate_addr,
 	.ndo_bpf		= ena_xdp,
 	.ndo_xdp_xmit		= ena_xdp_xmit,