]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net: usb: Remove duplicate assignments for net->pcpu_stat_type
authorZqiang <qiang.zhang@linux.dev>
Wed, 16 Jul 2025 00:15:24 +0000 (08:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jul 2025 09:43:07 +0000 (10:43 +0100)
This commit remove duplicate assignments for net->pcpu_stat_type
in usbnet_probe().

Signed-off-by: Zqiang <qiang.zhang@linux.dev>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c

index 6a3cca104af90109edc6c44b454b195c58e93a5c..921c05bc73e30cb166acf42900f653811fe6efa8 100644 (file)
@@ -1759,7 +1759,6 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
        dev->hard_mtu = net->mtu + net->hard_header_len;
        net->min_mtu = 0;
        net->max_mtu = ETH_MAX_MTU;
-       net->pcpu_stat_type = NETDEV_PCPU_STAT_TSTATS;
 
        net->netdev_ops = &usbnet_netdev_ops;
        net->watchdog_timeo = TX_TIMEOUT_JIFFIES;