mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
net: bridge: 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: Mao Wenan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
f295b3ae9f
commit
1bfe45f4ae
1 changed files with 1 additions and 1 deletions
|
|
@ -517,7 +517,7 @@ struct net_bridge_port_group *br_multicast_new_port_group(
|
|||
if (src)
|
||||
memcpy(p->eth_addr, src, ETH_ALEN);
|
||||
else
|
||||
memset(p->eth_addr, 0xff, ETH_ALEN);
|
||||
eth_broadcast_addr(p->eth_addr);
|
||||
|
||||
return p;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue