diff options
author | John Baldwin <jhb@FreeBSD.org> | 2021-09-15 16:03:17 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2021-09-15 16:03:17 +0000 |
commit | 5ac4ac85ca20ce1f00c84502a65a3291bf416c18 (patch) | |
tree | 0f7d505f99440fb25a49dcdcbeb0d0f349ef188a | |
parent | 11647befcbb81f2fc89c29020b4be80a251ec321 (diff) | |
download | src-5ac4ac85ca20ce1f00c84502a65a3291bf416c18.tar.gz src-5ac4ac85ca20ce1f00c84502a65a3291bf416c18.zip |
Remove an always-true check.
This fixes a -Wtype-limits error from GCC 9.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D31936
-rw-r--r-- | lib/libvmmapi/vmmapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c index 0543c92f4300..a2d26b1b33b9 100644 --- a/lib/libvmmapi/vmmapi.c +++ b/lib/libvmmapi/vmmapi.c @@ -486,7 +486,7 @@ vm_rev_map_gpa(struct vmctx *ctx, void *addr) offaddr = (char *)addr - ctx->baseaddr; if (ctx->lowmem > 0) - if (offaddr >= 0 && offaddr <= ctx->lowmem) + if (offaddr <= ctx->lowmem) return (offaddr); if (ctx->highmem > 0) |