diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2020-07-20 09:24:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-21 02:55:34 +0300 |
commit | 74b5afea3b5e141e9a0b76863858c072e28713f1 (patch) | |
tree | df23784b2f72ef52a4fe4d6bc06b843a67be20b3 | |
parent | 202a5d5a7aa5560052bd43ee4454212b26016164 (diff) | |
download | linux-74b5afea3b5e141e9a0b76863858c072e28713f1.tar.xz |
net: hns: use eth_broadcast_addr() to assign broadcast address
This patch is to use eth_broadcast_addr() to assign broadcast address
insetad of memset().
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c index 1c5243cc1dc6..acfa86e5296f 100644 --- a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c +++ b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c @@ -1724,7 +1724,7 @@ static void hns_dsaf_setup_mc_mask(struct dsaf_device *dsaf_dev, u8 port_num, u8 *mask, u8 *addr) { if (MAC_IS_BROADCAST(addr)) - memset(mask, 0xff, ETH_ALEN); + eth_broadcast_addr(mask); else memcpy(mask, dsaf_dev->mac_cb[port_num]->mc_mask, ETH_ALEN); } |