diff options
Diffstat (limited to 'sys/dev/sbni/if_sbni.c')
-rw-r--r-- | sys/dev/sbni/if_sbni.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/sbni/if_sbni.c b/sys/dev/sbni/if_sbni.c index 4dbfae7777ef..ffbce54a56f2 100644 --- a/sys/dev/sbni/if_sbni.c +++ b/sys/dev/sbni/if_sbni.c @@ -212,7 +212,7 @@ sbni_probe(struct sbni_softc *sc) /* * Install interface into kernel networking data structures */ -int +void sbni_attach(struct sbni_softc *sc, int unit, struct sbni_flags flags) { if_t ifp; @@ -220,8 +220,6 @@ sbni_attach(struct sbni_softc *sc, int unit, struct sbni_flags flags) uint64_t baudrate; ifp = sc->ifp = if_alloc(IFT_ETHER); - if (ifp == NULL) - return (ENOMEM); sbni_outb(sc, CSR0, 0); set_initial_values(sc, flags); @@ -250,7 +248,6 @@ sbni_attach(struct sbni_softc *sc, int unit, struct sbni_flags flags) printf("auto\n"); else printf("%d (fixed)\n", sc->cur_rxl_index); - return (0); } void |