diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2013-07-10 05:59:03 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2013-07-10 05:59:03 +0000 |
commit | 29a286038a2c91e5abb0e3e8c671aa830b3b68ab (patch) | |
tree | 60cd2ccd79db317e31c45fe26a7eaebc21eea473 /sys/dev/usb/if_urtw.c | |
parent | a5b9124cd1b6f806b9e4683527a3fa139a544b75 (diff) |
Remove unsigned comparison < 0.
Pointed out by LLVM.
ok jsg@
Diffstat (limited to 'sys/dev/usb/if_urtw.c')
-rw-r--r-- | sys/dev/usb/if_urtw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_urtw.c b/sys/dev/usb/if_urtw.c index ea9c4474536..708c9d6fa7c 100644 --- a/sys/dev/usb/if_urtw.c +++ b/sys/dev/usb/if_urtw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_urtw.c,v 1.41 2013/04/15 09:23:01 mglocker Exp $ */ +/* $OpenBSD: if_urtw.c,v 1.42 2013/07/10 05:59:02 brad Exp $ */ /*- * Copyright (c) 2009 Martynas Venckus <martynas@openbsd.org> @@ -3053,7 +3053,7 @@ urtw_8225_rf_set_sens(struct urtw_rf *rf) struct urtw_softc *sc = rf->rf_sc; usbd_status error; - if (rf->sens < 0 || rf->sens > 6) + if (rf->sens > 6) return (-1); if (rf->sens > 4) |