summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorUwe Stuehler <uwe@cvs.openbsd.org>2005-04-03 08:06:15 +0000
committerUwe Stuehler <uwe@cvs.openbsd.org>2005-04-03 08:06:15 +0000
commit88c118f2431f3bfd8b0768a859cae3d412cbe3d2 (patch)
treeec6817b2d2e5525626df3c4624f72c922e236e08 /sys/dev/ic
parentda712fb2b505bf319bf04b4789ff8a37e0d70daf (diff)
remove redundant suser() checks
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/ath.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c
index cb4fe0bdf80..ce2756ffe89 100644
--- a/sys/dev/ic/ath.c
+++ b/sys/dev/ic/ath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ath.c,v 1.17 2005/04/02 22:09:31 uwe Exp $ */
+/* $OpenBSD: ath.c,v 1.18 2005/04/03 08:06:14 uwe Exp $ */
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
/*-
@@ -1034,8 +1034,6 @@ ath_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
s = splnet();
switch (cmd) {
case SIOCSIFADDR:
- if ((error = suser(curproc, 0)) != 0)
- break;
ifp->if_flags |= IFF_UP;
#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET) {
@@ -1044,8 +1042,6 @@ ath_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
#endif /* INET */
/* FALLTHROUGH */
case SIOCSIFFLAGS:
- if ((error = suser(curproc, 0)) != 0)
- break;
if (ifp->if_flags & IFF_UP) {
if (ifp->if_flags & IFF_RUNNING) {
/*
@@ -1072,8 +1068,6 @@ ath_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
break;
case SIOCADDMULTI:
case SIOCDELMULTI:
- if ((error = suser(curproc, 0)) != 0)
- break;
#ifdef __FreeBSD__
/*
* The upper layer has already installed/removed