summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-10-20 09:35:10 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-10-20 09:35:10 +0000
commit34cfb4dc3e8c6c7c8bf396ae6446f109f04c7fe9 (patch)
tree39a01c899ff68e02ad6fa7aa0fba4ae0a01b138c /sys/dev
parentddcc005f9a59954e7a3886be80552d65117f9383 (diff)
Kill dead ioctl handlers.
SIOCGIF{HARD,}MTU are handled by ifioctl() and not passed down to drivers. ok visa@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/if_umb.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/usb/if_umb.c b/sys/dev/usb/if_umb.c
index 3b46cb08c72..b9d69d9699e 100644
--- a/sys/dev/usb/if_umb.c
+++ b/sys/dev/usb/if_umb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_umb.c,v 1.15 2017/08/11 21:24:19 mpi Exp $ */
+/* $OpenBSD: if_umb.c,v 1.16 2017/10/20 09:35:09 mpi Exp $ */
/*
* Copyright (c) 2016 genua mbH
@@ -734,12 +734,6 @@ umb_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
}
ifp->if_mtu = ifr->ifr_mtu;
break;
- case SIOCGIFMTU:
- ifr->ifr_mtu = ifp->if_mtu;
- break;
- case SIOCGIFHARDMTU:
- ifr->ifr_hardmtu = ifp->if_hardmtu;
- break;
case SIOCSIFADDR:
case SIOCAIFADDR:
case SIOCSIFDSTADDR: