smsc95xx: Debug message cleanup
authorWolfgang Grandegger <wg@denx.de>
Mon, 14 Nov 2011 23:19:15 +0000 (23:19 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 22 Nov 2011 07:39:24 +0000 (08:39 +0100)
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>
drivers/usb/eth/smsc95xx.c

index b5626e65f3ab4f97a6dc9a2f86727fc42bd6ef06..2f63340fdb8b220f2ba07314f6ffecbe0f05bb99 100644 (file)
@@ -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;
 }