]> git.proxmox.com Git - mirror_qemu.git/commit - linux-user/syscall.c
linux-user: Relax single exit from "break"
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 18 Aug 2018 19:01:05 +0000 (12:01 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 21 Aug 2018 21:54:48 +0000 (23:54 +0200)
commit72eb7ea8f9e97313555b4bc2aa638330c725679a
tree2903be9e02621272d1d336450f7b339e70ede255
parentdc1ce18b2bfcd4a759a4cb8c0fc513be887a679b
linux-user: Relax single exit from "break"

Transform outermost "break" to "return ret".  If the immediately
preceeding statement was an assignment to ret, return the value
directly.

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20180818190118.12911-4-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c