hinic: fix a bug in set rx mode
authorXue Chaojing <xuechaojing@huawei.com>
Mon, 27 May 2019 22:10:05 +0000 (22:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 May 2019 00:24:42 +0000 (17:24 -0700)
commit66350023d57560b2ead168af098fc507e58d8e6a
tree5c646e50fcd8d0db2b2ce7aa23fc224beba62bc8
parent2e56571d820d46d9d54c1ae0e113a91d1c07814f
hinic: fix a bug in set rx mode

in set_rx_mode, __dev_mc_sync and netdev_for_each_mc_addr will
repeatedly set the multicast mac address. so we delete this loop.

Signed-off-by: Xue Chaojing <xuechaojing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_main.c