wifi: qtnfmac: Remove generic .ndo_get_stats64
authorBreno Leitao <leitao@debian.org>
Fri, 26 Apr 2024 09:31:49 +0000 (02:31 -0700)
committerKalle Valo <kvalo@kernel.org>
Thu, 2 May 2024 07:20:04 +0000 (10:20 +0300)
Commit 3e2f544dd8a33 ("net: get stats64 if device if driver is
configured") moved the callback to dev_get_tstats64() to net core, so,
unless the driver is doing some custom stats collection, it does not
need to set .ndo_get_stats64.

Since this driver is now relying in NETDEV_PCPU_STAT_TSTATS, then, it
doesn't need to set the dev_get_tstats64() generic .ndo_get_stats64
function pointer.

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240426093156.2002258-2-leitao@debian.org
drivers/net/wireless/quantenna/qtnfmac/core.c

index 0aa4b1d1480934cb25fe4883cba94a7361cd8293..825b05dd3271bda11aca37ee0ed279dc061a446f 100644 (file)
@@ -202,7 +202,6 @@ const struct net_device_ops qtnf_netdev_ops = {
        .ndo_stop = qtnf_netdev_close,
        .ndo_start_xmit = qtnf_netdev_hard_start_xmit,
        .ndo_tx_timeout = qtnf_netdev_tx_timeout,
-       .ndo_get_stats64 = dev_get_tstats64,
        .ndo_set_mac_address = qtnf_netdev_set_mac_address,
        .ndo_get_port_parent_id = qtnf_netdev_port_parent_id,
 };