提交 73361e79 编写于 作者: S shenjian 提交者: Xie XiuQi

net: hns3: fix code review comments

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

This patch adds const definition for unchanged input function
parameter.

Feature or Bugfix:Bugfix
Signed-off-by: Nshenjian (K) <shenjian15@huawei.com>
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 1444fec1
...@@ -659,7 +659,7 @@ static int hns3_get_link_ksettings(struct net_device *netdev, ...@@ -659,7 +659,7 @@ static int hns3_get_link_ksettings(struct net_device *netdev,
return 0; return 0;
} }
static int hns3_check_ksettings_param(struct net_device *netdev, static int hns3_check_ksettings_param(const struct net_device *netdev,
const struct ethtool_link_ksettings *cmd) const struct ethtool_link_ksettings *cmd)
{ {
struct hnae3_handle *handle = hns3_get_handle(netdev); struct hnae3_handle *handle = hns3_get_handle(netdev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册