[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH] block: Silence Coverity in bdrv_drop_intermedia
From: |
Alberto Garcia |
Subject: |
Re: [Qemu-block] [PATCH] block: Silence Coverity in bdrv_drop_intermediate() |
Date: |
Fri, 15 Mar 2019 15:34:35 +0100 |
User-agent: |
Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) |
On Fri 15 Mar 2019 12:18:43 PM CET, Kevin Wolf <address@hidden> wrote:
> Coverity doesn't like that the return value of bdrv_check_update_perm()
> stays unused only in this place (CID 1399710).
>
> Even if checking local_err should be equivalent to checking ret < 0,
> let's switch to using the return value to be more consistent (and in
> case of a bug somewhere down the call chain, forgetting to assign errp
> is more likely than returning 0 for an error case).
>
> Signed-off-by: Kevin Wolf <address@hidden>
Reviewed-by: Alberto Garcia <address@hidden>
Berto