git: 56152f833bfe - stable/13 - Remove an always-true check.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 May 2022 23:23:57 UTC
The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=56152f833bfe7ced71754a29d56f7808fbdd52b6 commit 56152f833bfe7ced71754a29d56f7808fbdd52b6 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2021-09-15 16:03:17 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-10 22:51:49 +0000 Remove an always-true check. This fixes a -Wtype-limits error from GCC 9. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D31936 (cherry picked from commit 5ac4ac85ca20ce1f00c84502a65a3291bf416c18) --- lib/libvmmapi/vmmapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c index 03c2538e226d..0291e4a10c33 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)