From: Tomer Maimon <tmaimon77@gmail.com>
To: openbmc@lists.ozlabs.org
Cc: Joel Stanley <joel@jms.id.au>, Tomer Maimon <tmaimon77@gmail.com>
Subject: [dev-5.7 v1 1/4] net: npcm-emc: modify check mac_address function
Date: Sun, 13 Sep 2020 12:51:23 +0300 [thread overview]
Message-ID: <20200913095126.119727-1-tmaimon77@gmail.com> (raw)
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
next reply other threads:[~2020-09-13 10:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-13 9:51 Tomer Maimon [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200913095126.119727-1-tmaimon77@gmail.com \
--to=tmaimon77@gmail.com \
--cc=joel@jms.id.au \
--cc=openbmc@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.