Skip to contentSkip to conversation

net: ena: Remove redundant assignment

PATCH Applied Kamal Heib 4 participants 4 messages Feb 13, 2024 – Feb 14, 2024

Subsystems (3)
lore
Share & tools
lore

Kamal Heib

author
#0 lore raw

PATCH 1/1 net: ena: Remove redundant assignment

There is no point in initializing an ndo to NULL, therefor the assignment is redundant and can be removed.

---
 drivers/net/ethernet/amazon/ena/ena_netdev.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/amazon/ena/ena_netdev.c +0 -1
index 1c0a7828d397..88d7e785e10f 100644
@@ -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,
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Kamal Heib

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.

Quoted 19 lines
---
  drivers/net/ethernet/amazon/ena/ena_netdev.c | 1 -
  1 file changed, 1 deletion(-)
drivers/net/ethernet/amazon/ena/ena_netdev.c +0 -2
index 1c0a7828d397..88d7e785e10f 100644
@@ -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

maintainer Acked-by
#2 lore raw
Quoted 23 lines

-----Original Message-----
From: Brett Creeley <[email protected]>
Sent: Tuesday, February 13, 2024 6:11 AM
To: Kamal Heib <[email protected]>; [email protected]; David S . Miller <[email protected]>; Jakub Kicinski <[email protected]>
Cc: Agroskin, Shay <[email protected]>; Arinzon, David <[email protected]>
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.

Quoted 1 line · Kamal Heib

Caution: This message originated from an External Source. Use proper

caution when opening attachments, clicking links, or responding.

Quoted 2 lines
Quoted 8 lines
Quoted 4 lines

There is no point in initializing an ndo to NULL, therefor the assignment is redundant and can be removed.

Thanks for submitting this commit.

Nit: therfor=>therefore

Otherwise,

#3 lore raw
In reply to Kamal Heib
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Quoted 7 lines · 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.

---
 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!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html