summaryrefslogtreecommitdiff
path: root/drivers/usb/eth
diff options
context:
space:
mode:
authorWolfgang Grandegger <wg@denx.de>2011-11-14 23:19:15 +0000
committerStefano Babic <sbabic@denx.de>2011-11-22 08:39:24 +0100
commit0d9679e65a59fd05d9c7d554a7e304590366f390 (patch)
tree1013d402916ea46fb7b76b9bd0054e0fecaf11b9 /drivers/usb/eth
parent50d89f57572af12bb601ea804deff3b0794e60cc (diff)
downloadu-boot-imx-0d9679e65a59fd05d9c7d554a7e304590366f390.zip
u-boot-imx-0d9679e65a59fd05d9c7d554a7e304590366f390.tar.gz
u-boot-imx-0d9679e65a59fd05d9c7d554a7e304590366f390.tar.bz2
smsc95xx: Debug message cleanup
Cc: Simon Glass <sjg@chromium.org> Cc: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Wolfgang Grandegger <wg@denx.de> Acked-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/usb/eth')
-rw-r--r--drivers/usb/eth/smsc95xx.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c
index b5626e6..2f63340 100644
--- a/drivers/usb/eth/smsc95xx.c
+++ b/drivers/usb/eth/smsc95xx.c
@@ -380,18 +380,14 @@ static int smsc95xx_write_hwaddr(struct eth_device *eth)
/* set hardware address */
debug("** %s()\n", __func__);
ret = smsc95xx_write_reg(dev, ADDRL, addr_lo);
- if (ret < 0) {
- debug("Failed to write ADDRL: %d\n", ret);
+ if (ret < 0)
return ret;
- }
ret = smsc95xx_write_reg(dev, ADDRH, addr_hi);
if (ret < 0)
return ret;
- debug("MAC %02x:%02x:%02x:%02x:%02x:%02x\n",
- eth->enetaddr[0], eth->enetaddr[1],
- eth->enetaddr[2], eth->enetaddr[3],
- eth->enetaddr[4], eth->enetaddr[5]);
+
+ debug("MAC %pM\n", eth->enetaddr);
dev->have_hwaddr = 1;
return 0;
}