diff options
author | Peng Li <lipeng321@huawei.com> | 2018-01-09 01:50:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-10 14:55:51 -0500 |
commit | 6c88d9d7eee0f1a5ac982bebca54a3a322876fb3 (patch) | |
tree | 5b33e44691813208c01d7f2384733f5fe425c915 | |
parent | bf909456f6a89654cb65c01fe83a4f9b133bf978 (diff) |
net: hns3: report the function type the same line with hns3_nic_get_stats64
The function type should be on the same line with the function
name, or it may cause display error if a patch edit the
function. There is am example following:
https://www.spinics.net/lists/netdev/msg476141.html
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index b23107d7821f..14c7625c6f19 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | |||
@@ -1126,8 +1126,8 @@ static int hns3_nic_set_features(struct net_device *netdev, | |||
1126 | return 0; | 1126 | return 0; |
1127 | } | 1127 | } |
1128 | 1128 | ||
1129 | static void | 1129 | static void hns3_nic_get_stats64(struct net_device *netdev, |
1130 | hns3_nic_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats) | 1130 | struct rtnl_link_stats64 *stats) |
1131 | { | 1131 | { |
1132 | struct hns3_nic_priv *priv = netdev_priv(netdev); | 1132 | struct hns3_nic_priv *priv = netdev_priv(netdev); |
1133 | int queue_num = priv->ae_handle->kinfo.num_tqps; | 1133 | int queue_num = priv->ae_handle->kinfo.num_tqps; |