mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
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.
This commit is contained in:
parent
0a594d9ecc
commit
d47f0d75af
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192043
@ -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:
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user