[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] linux-user: Remove dead error-checking code
From: |
Laurent Vivier |
Subject: |
Re: [Qemu-devel] [PATCH] linux-user: Remove dead error-checking code |
Date: |
Fri, 19 Oct 2018 18:26:27 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
Le 19/10/2018 à 18:17, Peter Maydell a écrit :
> Remove some dead code spotted by Coverity (CID 1009855,
> 1390854, 1390847). The underlying cause in all these cases
> is the same: QEMU's put_user operations can't result in
> errors, but the kernel's equivalent does. So when code
> was copied from the kernel signal-frame-setup/teardown
> code, checks on error flags that were needed in the kernel
> became dead code for us.
>
> Signed-off-by: Peter Maydell <address@hidden>
> ---
> linux-user/m68k/signal.c | 3 ---
> linux-user/sh4/signal.c | 4 ----
> linux-user/sparc/signal.c | 2 --
> 3 files changed, 9 deletions(-)
>
Reviewed-by: Laurent Vivier <address@hidden>