From: kevlo Date: Mon, 16 Aug 2021 01:30:27 +0000 (+0000) Subject: Remove redundant SIOCSIFMTU ioctl handler already handlded by ether_ioctl(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=77e7a1bf336f6f5f0082fd458f4ecdf0e07dc63f;p=openbsd Remove redundant SIOCSIFMTU ioctl handler already handlded by ether_ioctl(). From Brad --- diff --git a/sys/dev/pci/if_rge.c b/sys/dev/pci/if_rge.c index 7866e43f27b..6d54456678d 100644 --- a/sys/dev/pci/if_rge.c +++ b/sys/dev/pci/if_rge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_rge.c,v 1.14 2021/07/12 12:24:41 daniel Exp $ */ +/* $OpenBSD: if_rge.c,v 1.15 2021/08/16 01:30:27 kevlo Exp $ */ /* * Copyright (c) 2019, 2020 Kevin Lo @@ -526,13 +526,6 @@ rge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) case SIOCSIFMEDIA: error = ifmedia_ioctl(ifp, ifr, &sc->sc_media, cmd); break; - case SIOCSIFMTU: - if (ifr->ifr_mtu > ifp->if_hardmtu) { - error = EINVAL; - break; - } - ifp->if_mtu = ifr->ifr_mtu; - break; case SIOCGIFRXR: error = if_rxr_ioctl((struct if_rxrinfo *)ifr->ifr_data, NULL, RGE_JUMBO_FRAMELEN, &sc->sc_queues->q_rx.rge_rx_ring);