All of lore.kernel.org
 help / color / mirror / Atom feed
* [dev-5.7 v1 1/4] net: npcm-emc: modify check mac_address function
@ 2020-09-13  9:51 Tomer Maimon
  2020-09-13  9:51 ` [dev-5.7 v1 2/4] dts: npcm7xx: modify FIU's clock names Tomer Maimon
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Tomer Maimon @ 2020-09-13  9:51 UTC (permalink / raw)
  To: openbmc; +Cc: Joel Stanley, Tomer Maimon

Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
---
 drivers/net/ethernet/nuvoton/npcm7xx_emc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/nuvoton/npcm7xx_emc.c b/drivers/net/ethernet/nuvoton/npcm7xx_emc.c
index 9872da33fa5d..f07449e2f68d 100644
--- a/drivers/net/ethernet/nuvoton/npcm7xx_emc.c
+++ b/drivers/net/ethernet/nuvoton/npcm7xx_emc.c
@@ -1752,7 +1752,7 @@ static void get_mac_address(struct net_device *dev)
 
 	mac_address = of_get_mac_address(np);
 
-	if (mac_address != 0)
+	if (!IS_ERR(mac_address))
 		ether_addr_copy(dev->dev_addr, mac_address);
 
 	if (is_valid_ether_addr(dev->dev_addr)) {
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-09-14 10:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-13  9:51 [dev-5.7 v1 1/4] net: npcm-emc: modify check mac_address function Tomer Maimon
2020-09-13  9:51 ` [dev-5.7 v1 2/4] dts: npcm7xx: modify FIU's clock names Tomer Maimon
2020-09-13  9:51 ` [dev-5.7 v1 3/4] dts: npcm7xx: remove direct read mapping in FIU Tomer Maimon
2020-09-13  9:51 ` [dev-5.7 v1 4/4] dts: npcm7xx: add reset support Tomer Maimon
2020-09-14 10:40 ` [dev-5.7 v1 1/4] net: npcm-emc: modify check mac_address function Joel Stanley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.