diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-02-05 23:37:22 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-02-05 23:37:22 +0000 |
commit | 7794e1d75ad1eff0aad210723359cd4a0c251c10 (patch) | |
tree | c529ff0eefcb6b8aca2261b2a9f6931912acc792 | |
parent | 0851bc5f1c88427c1e10f7d84ed845bf91505e81 (diff) |
Simplify SIOCSIFADDR switch case a bit.
-rw-r--r-- | sys/dev/pci/if_nfe.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c index dca1ca3b446..d210953d8dd 100644 --- a/sys/dev/pci/if_nfe.c +++ b/sys/dev/pci/if_nfe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nfe.c,v 1.18 2006/02/05 23:32:06 brad Exp $ */ +/* $OpenBSD: if_nfe.c,v 1.19 2006/02/05 23:37:21 brad Exp $ */ /*- * Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr> @@ -447,15 +447,14 @@ nfe_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) switch (cmd) { case SIOCSIFADDR: ifp->if_flags |= IFF_UP; + nfe_init(ifp); switch (ifa->ifa_addr->sa_family) { #ifdef INET case AF_INET: - nfe_init(ifp); arp_ifinit(&sc->sc_arpcom, ifa); break; #endif default: - nfe_init(ifp); break; } break; |