diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2016-11-16 14:39:03 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2016-11-16 14:39:03 +0000 |
| commit | 33299e3d96bb998373f69d828c495aa84adff45b (patch) | |
| tree | eaaeef807575001cc0b0c4d7e8ff9911deccff65 | |
| parent | 2a8e73ea33b99b56871ae7ca478d4db0ed2de1aa (diff) | |
Notes
| -rw-r--r-- | sys/dev/usb/net/if_smsc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/usb/net/if_smsc.c b/sys/dev/usb/net/if_smsc.c index 2162224b330b0..375ab5f218942 100644 --- a/sys/dev/usb/net/if_smsc.c +++ b/sys/dev/usb/net/if_smsc.c @@ -152,7 +152,7 @@ static const struct usb_device_id smsc_devs[] = { device_printf((sc)->sc_ue.ue_dev, "debug: " fmt, ##args); \ } while(0) #else -#define smsc_dbg_printf(sc, fmt, args...) +#define smsc_dbg_printf(sc, fmt, args...) do { } while (0) #endif #define smsc_warn_printf(sc, fmt, args...) \ @@ -822,7 +822,6 @@ static int smsc_sethwcsum(struct smsc_softc *sc) return (0); } - /** * smsc_setmacaddress - Sets the mac address in the device * @sc: driver soft context @@ -905,6 +904,9 @@ smsc_init(struct usb_ether *ue) SMSC_LOCK_ASSERT(sc, MA_OWNED); + if (smsc_setmacaddress(sc, IF_LLADDR(ifp))) + smsc_dbg_printf(sc, "setting MAC address failed\n"); + if ((ifp->if_drv_flags & IFF_DRV_RUNNING) != 0) return; |
