Commit 720a8478 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

hns3pf: Fix some harmless copy and paste bugs

These were copy and paste bugs, but I believe they are harmless.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9537e7cb
...@@ -330,7 +330,7 @@ static int hns3_nic_mc_sync(struct net_device *netdev, ...@@ -330,7 +330,7 @@ static int hns3_nic_mc_sync(struct net_device *netdev,
struct hns3_nic_priv *priv = netdev_priv(netdev); struct hns3_nic_priv *priv = netdev_priv(netdev);
struct hnae3_handle *h = priv->ae_handle; struct hnae3_handle *h = priv->ae_handle;
if (h->ae_algo->ops->add_uc_addr) if (h->ae_algo->ops->add_mc_addr)
return h->ae_algo->ops->add_mc_addr(h, addr); return h->ae_algo->ops->add_mc_addr(h, addr);
return 0; return 0;
...@@ -342,7 +342,7 @@ static int hns3_nic_mc_unsync(struct net_device *netdev, ...@@ -342,7 +342,7 @@ static int hns3_nic_mc_unsync(struct net_device *netdev,
struct hns3_nic_priv *priv = netdev_priv(netdev); struct hns3_nic_priv *priv = netdev_priv(netdev);
struct hnae3_handle *h = priv->ae_handle; struct hnae3_handle *h = priv->ae_handle;
if (h->ae_algo->ops->rm_uc_addr) if (h->ae_algo->ops->rm_mc_addr)
return h->ae_algo->ops->rm_mc_addr(h, addr); return h->ae_algo->ops->rm_mc_addr(h, addr);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment