hns3pf: Fix some harmless copy and paste bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 10 Aug 2017 09:56:14 +0000 (12:56 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 21:31:59 +0000 (14:31 -0700)
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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c

index e519795dff7cb6121bf37e4539bd338eb266517e..9589b7e1d24c8c93f35eabae6c9200bc55bc76b5 100644 (file)
@@ -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;