summaryrefslogtreecommitdiff
path: root/sys/net/if_trunk.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_trunk.c')
-rw-r--r--sys/net/if_trunk.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/net/if_trunk.c b/sys/net/if_trunk.c
index cc00ff8d1b9..14a19a2db31 100644
--- a/sys/net/if_trunk.c
+++ b/sys/net/if_trunk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_trunk.c,v 1.50 2008/09/17 20:10:37 chl Exp $ */
+/* $OpenBSD: if_trunk.c,v 1.51 2008/10/02 20:21:14 brad Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -632,9 +632,6 @@ trunk_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
s = splnet();
- if ((error = ether_ioctl(ifp, &tr->tr_ac, cmd, data)) > 0)
- goto out;
-
bzero(&rpbuf, sizeof(rpbuf));
switch (cmd) {
@@ -767,8 +764,7 @@ trunk_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
error = ENETRESET;
break;
default:
- error = EINVAL;
- break;
+ error = ether_ioctl(ifp, &tr->tr_ac, cmd, data);
}
if (error == ENETRESET) {