mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-02 17:08:56 +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…
x
Reference in New Issue
Block a user