mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
[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
This commit is contained in:
parent
c676c939e2
commit
1b8be09a20
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue