diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2013-06-25 02:27:45 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2013-06-25 02:27:45 +0000 |
commit | 00342b859e7cfc2694cae3ea50581cd5dce57118 (patch) | |
tree | 50c157c145bfa61d5f473b08cc3b2808e623ef67 /sys/dev/mii | |
parent | 31e7eb675286a1c0d84caae03407ae02407ab164 (diff) |
Remove unsigned comparison < 0.
Pointed out by LLVM.
ok mikeb@
Diffstat (limited to 'sys/dev/mii')
-rw-r--r-- | sys/dev/mii/mii_physubr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mii/mii_physubr.c b/sys/dev/mii/mii_physubr.c index 8ccdb6aa0a4..ed5fbdd5980 100644 --- a/sys/dev/mii/mii_physubr.c +++ b/sys/dev/mii/mii_physubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mii_physubr.c,v 1.40 2011/07/03 15:47:16 matthew Exp $ */ +/* $OpenBSD: mii_physubr.c,v 1.41 2013/06/25 02:27:44 brad Exp $ */ /* $NetBSD: mii_physubr.c,v 1.20 2001/04/13 23:30:09 thorpej Exp $ */ /*- @@ -94,7 +94,7 @@ mii_phy_setmedia(struct mii_softc *sc) * Table index is stored in the media entry. */ #ifdef DIAGNOSTIC - if (ife->ifm_data < 0 || ife->ifm_data >= MII_NMEDIA) + if (ife->ifm_data >= MII_NMEDIA) panic("mii_phy_setmedia"); #endif |