summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-05-13 14:43:26 +0000
committerimp <imp@FreeBSD.org>2009-05-13 14:43:26 +0000
commit88921bda01e9dfef1178ac022f2ea8f6858091a7 (patch)
treed59d36260a3c6a7025add30920a2b2feb7382a25 /sys/dev/ed
parentc3fa533bb1729b310d58d84d31ad92dd97e5f75f (diff)
downloadFreeBSD-src-88921bda01e9dfef1178ac022f2ea8f6858091a7.zip
FreeBSD-src-88921bda01e9dfef1178ac022f2ea8f6858091a7.tar.gz
ifp->if_softc is managed entirely by the driver. We never set it to
NULL or change it. We initialize it before we set if_ioctl. It can therefore never be NULL, and most other drivers don't bother with this sanity check.
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index 5a60569..f94ec8b 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -1164,14 +1164,6 @@ ed_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
struct ifreq *ifr = (struct ifreq *)data;
int error = 0;
- /*
- * XXX really needed?
- */
- if (sc == NULL) {
- ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
- return (ENXIO);
- }
-
switch (command) {
case SIOCSIFFLAGS:
/*
OpenPOWER on IntegriCloud