mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 03:06:48 +00:00
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:
parent
11647befcb
commit
5ac4ac85ca
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue