From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=nuvoton.com (client-ip=212.199.177.27; helo=herzl.nuvoton.co.il; envelope-from=tomer.maimon@nuvoton.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com X-Greylist: delayed 978 seconds by postgrey-1.36 at bilbo; Sun, 13 Sep 2020 20:08:11 AEST Received: from herzl.nuvoton.co.il (212.199.177.27.static.012.net.il [212.199.177.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Bq4tz4zwvzDqTP for ; Sun, 13 Sep 2020 20:08:11 +1000 (AEST) Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id 08D9pYDu001983; Sun, 13 Sep 2020 12:51:34 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 85E2C639D3; Sun, 13 Sep 2020 12:51:34 +0300 (IDT) From: Tomer Maimon To: openbmc@lists.ozlabs.org Cc: Joel Stanley , Tomer Maimon Subject: [dev-5.7 v1 1/4] net: npcm-emc: modify check mac_address function Date: Sun, 13 Sep 2020 12:51:23 +0300 Message-Id: <20200913095126.119727-1-tmaimon77@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Sep 2020 10:08:13 -0000 Signed-off-by: Tomer Maimon --- 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