Minor beautifications related to style(9) and code consistency.

No functional changes.
This commit is contained in:
Yaroslav Tykhiy 2004-02-21 12:56:09 +00:00
parent 8f52a59171
commit 913e410e29

View File

@ -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;