summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2004-02-21 12:56:09 +0000
committeryar <yar@FreeBSD.org>2004-02-21 12:56:09 +0000
commitc018b8a86e3a5c46a4dde9d4b1f86181d794bb0a (patch)
tree9e5bc965a86547c1fefeb86a250f7fa07ae28cdb /sys/net
parenta2c86ff9f2c313e81667a1b60883e7c9c6b248de (diff)
downloadFreeBSD-src-c018b8a86e3a5c46a4dde9d4b1f86181d794bb0a.zip
FreeBSD-src-c018b8a86e3a5c46a4dde9d4b1f86181d794bb0a.tar.gz
Minor beautifications related to style(9) and code consistency.
No functional changes.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index afec9f9..3031661 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;
OpenPOWER on IntegriCloud