net: ena: Remove redundant assignment
authorKamal Heib <kheib@redhat.com>
Tue, 13 Feb 2024 03:17:18 +0000 (22:17 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Feb 2024 10:57:25 +0000 (10:57 +0000)
There is no point in initializing an ndo to NULL, therefore the
assignment is redundant and can be removed.

Signed-off-by: Kamal Heib <kheib@redhat.com>
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Acked-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_netdev.c

index 03be2c008c4d8f88ee6d39b6c25646d6f249585a..a77c380c9202f2611b304d2aea59410a3f1dab2b 100644 (file)
@@ -2885,7 +2885,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,