linux-user: Split out target_mmap__locked
commitd558c395a9bc3f15e010dc0fb786af9a400bccac
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 2 Jan 2024 01:57:51 +0000 (2 12:57 +1100)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 29 Feb 2024 21:35:36 +0000 (29 11:35 -1000)
tree7db94c21d7032b8ed3cc892acc3067b438d8fd0f
parent13c13397556afccc05f0f604cbc7d74df0980335
linux-user: Split out target_mmap__locked

All "goto fail" may be transformed to "return -1".

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20240102015808.132373-17-richard.henderson@linaro.org>
linux-user/mmap.c