Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: usb: Remove duplicate assignments for net->pcpu_stat_type

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>

authored by

Zqiang and committed by
David S. Miller
dd500e4a 4701ee50

-1
-1
drivers/net/usb/usbnet.c
··· 1759 1759 dev->hard_mtu = net->mtu + net->hard_header_len; 1760 1760 net->min_mtu = 0; 1761 1761 net->max_mtu = ETH_MAX_MTU; 1762 - net->pcpu_stat_type = NETDEV_PCPU_STAT_TSTATS; 1763 1762 1764 1763 net->netdev_ops = &usbnet_netdev_ops; 1765 1764 net->watchdog_timeo = TX_TIMEOUT_JIFFIES;