net: ena: Remove redundant assignment
Subsystems (3)
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
@@ -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
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.
Signed-off-by Kamal Heib <[email protected]>
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@@ -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
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 assignmentCAUTION: 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.
Signed-off-by Kamal Heib <[email protected]>Reviewed-by Brett Creeley <[email protected]>
Thanks for submitting this commit.
Nit: therfor=>therefore
Otherwise,
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.
Signed-off-by Kamal Heib <[email protected]>--- 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