diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-07-09 22:14:28 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-07-09 22:14:28 +0000 |
commit | 64cf99ee9ee523448fecd2ae7114bd5498e9089d (patch) | |
tree | 4e9176b60c9d747b922d4c82aaa95d3cbf280bfa /sys/dev/pci/if_nge.c | |
parent | fcaa07c078c756e368675b5ff2b13573316ffadc (diff) |
better
Diffstat (limited to 'sys/dev/pci/if_nge.c')
-rw-r--r-- | sys/dev/pci/if_nge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_nge.c b/sys/dev/pci/if_nge.c index b59ebcc152d..7beae2989e5 100644 --- a/sys/dev/pci/if_nge.c +++ b/sys/dev/pci/if_nge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nge.c,v 1.38 2005/07/09 22:09:39 brad Exp $ */ +/* $OpenBSD: if_nge.c,v 1.39 2005/07/09 22:14:27 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2000, 2001 @@ -2082,7 +2082,7 @@ nge_ioctl(ifp, command, data) case SIOCSIFMTU: if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > ETHERMTU_JUMBO) error = EINVAL; - else + else if (ifp->if_mtu != ifr->ifr_mtu) ifp->if_mtu = ifr->ifr_mtu; break; case SIOCSIFADDR: |