]> 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)
commit6e30c6e15b865598304bd75d5081dc1c847a2b3c
tree8e4d01db704931355a75c0a2fc8265dc9ecc14e0
parentb0d440cd6dcd476710432cde412f94647ab9842c
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