mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 10:34:22 -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:
committed by
David S. Miller
parent
9537e7cbf2
commit
720a8478b2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user