summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2013-07-06 23:35:45 +0000
committerBrad Smith <brad@cvs.openbsd.org>2013-07-06 23:35:45 +0000
commitf1bbd11413c45dc9480b3f1010531083d32235e3 (patch)
tree7fa5ab4cba9ca7431643399a0fca0d5f34f825d2 /sys/dev/pci
parent223f48adba1b0f5ed461be657a11165edc83fcc2 (diff)
Remove unsigned comparison < 0.
Pointed out by LLVM. ok kettenis@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/agp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/agp.c b/sys/dev/pci/agp.c
index 64b7b3dd794..884c714a56f 100644
--- a/sys/dev/pci/agp.c
+++ b/sys/dev/pci/agp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: agp.c,v 1.36 2012/12/06 15:05:21 mpi Exp $ */
+/* $OpenBSD: agp.c,v 1.37 2013/07/06 23:35:44 brad Exp $ */
/*-
* Copyright (c) 2000 Doug Rabson
* All rights reserved.
@@ -487,7 +487,7 @@ agp_generic_bind_memory(struct agp_softc *sc, struct agp_memory *mem,
return (EINVAL);
}
- if (offset < 0 || (offset & (AGP_PAGE_SIZE - 1)) != 0 ||
+ if ((offset & (AGP_PAGE_SIZE - 1)) != 0 ||
offset + mem->am_size > sc->sc_apsize) {
printf("AGP: binding memory at bad offset %#lx\n",
(unsigned long) offset);