提交 b27d50a9 编写于 作者: T Tobias Klauser 提交者: David S. Miller

net: emaclite: Omit private ndo_get_stats function

xemaclite_get_stats() just returns dev->stats so we can leave it out
alltogether and let dev_get_stats() do the job.
Signed-off-by: NTobias Klauser <tklauser@distanz.ch>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e176bbc5
......@@ -1000,21 +1000,6 @@ static int xemaclite_close(struct net_device *dev)
return 0;
}
/**
* xemaclite_get_stats - Get the stats for the net_device
* @dev: Pointer to the network device
*
* This function returns the address of the 'net_device_stats' structure for the
* given network device. This structure holds usage statistics for the network
* device.
*
* Return: Pointer to the net_device_stats structure.
*/
static struct net_device_stats *xemaclite_get_stats(struct net_device *dev)
{
return &dev->stats;
}
/**
* xemaclite_send - Transmit a frame
* @orig_skb: Pointer to the socket buffer to be transmitted
......@@ -1285,7 +1270,6 @@ static struct net_device_ops xemaclite_netdev_ops = {
.ndo_start_xmit = xemaclite_send,
.ndo_set_mac_address = xemaclite_set_mac_address,
.ndo_tx_timeout = xemaclite_tx_timeout,
.ndo_get_stats = xemaclite_get_stats,
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = xemaclite_poll_controller,
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册