tipc: Use is_broadcast_ether_addr() instead of memcmp()
authorHuang Guobin <huangguobin4@huawei.com>
Mon, 3 Aug 2020 02:00:55 +0000 (22:00 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2020 23:21:46 +0000 (16:21 -0700)
commitfbc97de84ef88bc38874c41be151cf220c72a865
tree4979d9522a3d4cec7f721194c139c74f195f66f8
parent6c09b484377cc8f135a20390c99d7e0d71b1b888
tipc: Use is_broadcast_ether_addr() instead of memcmp()

Using is_broadcast_ether_addr() instead of directly use
memcmp() to determine if the ethernet address is broadcast
address.

spatch with a semantic match is used to found this problem.
(http://coccinelle.lip6.fr/)

Signed-off-by: Huang Guobin <huangguobin4@huawei.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/eth_media.c