]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5bbf6f1e8401d7fc2afee10f1a2e8a7468ff3b1
tree4979d9522a3d4cec7f721194c139c74f195f66f8
parent6b5bc968ae584fe44d5bf970fe26338380dfecdf
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