diff options
| author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2004-02-21 12:56:09 +0000 |
|---|---|---|
| committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2004-02-21 12:56:09 +0000 |
| commit | 913e410e2952ce5b5f6c9c8b75ac4885f494ef3f (patch) | |
| tree | 9e5bc965a86547c1fefeb86a250f7fa07ae28cdb /sys | |
| parent | 8f52a59171ecbae4ad77acd869011df4a56bcdaa (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/net/if.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index afec9f90408f..303166181136 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1417,13 +1417,13 @@ ifhwioctl(u_long cmd, struct ifnet *ifp, caddr_t data, struct thread *td) case SIOCSIFPHYS: error = suser(td); if (error) - return error; - if (!ifp->if_ioctl) - return EOPNOTSUPP; + return (error); + if (ifp->if_ioctl == NULL) + return (EOPNOTSUPP); error = (*ifp->if_ioctl)(ifp, cmd, data); if (error == 0) getmicrotime(&ifp->if_lastchange); - return(error); + break; case SIOCSIFMTU: { @@ -1503,7 +1503,7 @@ ifhwioctl(u_long cmd, struct ifnet *ifp, caddr_t data, struct thread *td) case SIOCGLIFPHYADDR: case SIOCGIFMEDIA: case SIOCGIFGENERIC: - if (ifp->if_ioctl == 0) + if (ifp->if_ioctl == NULL) return (EOPNOTSUPP); error = (*ifp->if_ioctl)(ifp, cmd, data); break; |
