]> 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)
commit64ef8f7663844bb5e6775c3d0e92b413d9d32b3d
tree4979d9522a3d4cec7f721194c139c74f195f66f8
parentbd6775e127da0bdea59ef58f4f13aa323124413a
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