From 1b8be09a20de61efd99b8a31b810ca40e52fe9c6 Mon Sep 17 00:00:00 2001 From: Michael Zhilin Date: Thu, 25 Jan 2018 05:48:42 +0000 Subject: [PATCH] [etherswitch] fix LINT build for rtl8366rb Build with rtl8366rb has been broken due to incorrect retrieval of pointer to device_t. Reported by: lwhsu Differential Revision: https://reviews.freebsd.org/D14044 --- sys/dev/etherswitch/rtl8366/rtl8366rb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/etherswitch/rtl8366/rtl8366rb.c b/sys/dev/etherswitch/rtl8366/rtl8366rb.c index 1fff39bfbac9..279c33bcaf4a 100644 --- a/sys/dev/etherswitch/rtl8366/rtl8366rb.c +++ b/sys/dev/etherswitch/rtl8366/rtl8366rb.c @@ -240,7 +240,7 @@ rtl8366rb_attach(device_t dev) for (i = 0; i < sc->numphys; i++) { sc->ifp[i] = if_alloc(IFT_ETHER); if (sc->ifp[i] == NULL) { - device_printf(sc->sc_dev, "couldn't allocate ifnet structure\n"); + device_printf(dev, "couldn't allocate ifnet structure\n"); err = ENOMEM; break; }