mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
hns3pf: Fix some harmless copy and paste bugs
These were copy and paste bugs, but I believe they are harmless. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9537e7cbf2
commit
720a8478b2
1 changed files with 2 additions and 2 deletions
|
|
@ -330,7 +330,7 @@ static int hns3_nic_mc_sync(struct net_device *netdev,
|
|||
struct hns3_nic_priv *priv = netdev_priv(netdev);
|
||||
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 0;
|
||||
|
|
@ -342,7 +342,7 @@ static int hns3_nic_mc_unsync(struct net_device *netdev,
|
|||
struct hns3_nic_priv *priv = netdev_priv(netdev);
|
||||
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 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue