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)
commit3f07ce8e528746d477cfb301f4dc7b197ad1e2a3
tree8e4d01db704931355a75c0a2fc8265dc9ecc14e0
parentcda9de0b8daf2ebfc07d385ef0039fd7860ddf25
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