From 00342b859e7cfc2694cae3ea50581cd5dce57118 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Tue, 25 Jun 2013 02:27:45 +0000 Subject: Remove unsigned comparison < 0. Pointed out by LLVM. ok mikeb@ --- sys/dev/mii/mii_physubr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/mii') 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 -- cgit v1.2.3