Remove an always-true check.

This fixes a -Wtype-limits error from GCC 9.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D31936
This commit is contained in:
John Baldwin 2021-09-15 09:03:17 -07:00
parent 11647befcb
commit 5ac4ac85ca

View file

@ -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)