]> git.proxmox.com Git - mirror_qemu.git/commit - linux-user/mmap.c
linux-user: Simplify target_madvise
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 7 Jul 2023 20:40:54 +0000 (21:40 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 15 Jul 2023 07:02:33 +0000 (08:02 +0100)
commite230ec090b61ea7642854197c143010d2c89bb24
treebdeb020af5b5f8e017e8b7f61eb38b3c6129c2ab
parentecb796db038ad43707d344ce5da55b7f39c3e59f
linux-user: Simplify target_madvise

The trivial length 0 check can be moved up, simplifying some
of the other cases.  The end < start test is handled by
guest_range_valid_untagged.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230707204054.8792-27-richard.henderson@linaro.org>
linux-user/mmap.c