Skip to content

Commit 720a847

Browse files
Dan Carpenterdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9537e7c commit 720a847

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ static int hns3_nic_mc_sync(struct net_device *netdev,
330330
struct hns3_nic_priv *priv = netdev_priv(netdev);
331331
struct hnae3_handle *h = priv->ae_handle;
332332

333-
if (h->ae_algo->ops->add_uc_addr)
333+
if (h->ae_algo->ops->add_mc_addr)
334334
return h->ae_algo->ops->add_mc_addr(h, addr);
335335

336336
return 0;
@@ -342,7 +342,7 @@ static int hns3_nic_mc_unsync(struct net_device *netdev,
342342
struct hns3_nic_priv *priv = netdev_priv(netdev);
343343
struct hnae3_handle *h = priv->ae_handle;
344344

345-
if (h->ae_algo->ops->rm_uc_addr)
345+
if (h->ae_algo->ops->rm_mc_addr)
346346
return h->ae_algo->ops->rm_mc_addr(h, addr);
347347

348348
return 0;

0 commit comments

Comments
 (0)