]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: hellcreek: Use is_zero_ether_addr() instead of memcmp()
authorZou Wei <zou_wei@huawei.com>
Mon, 7 Jun 2021 02:57:09 +0000 (10:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2021 20:16:36 +0000 (13:16 -0700)
commitdd02e990f7438dd6ef5d2876f5ac70067ed496dc
tree8e4d01db704931355a75c0a2fc8265dc9ecc14e0
parent8a00c20820dea637c54fbee3798d7c67066903d6
net: dsa: hellcreek: Use is_zero_ether_addr() instead of memcmp()

Using is_zero_ether_addr() instead of directly use
memcmp() to determine if the ethernet address is all
zeros.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/hirschmann/hellcreek.c