From: Philippe Mathieu-Daudé Date: Sat, 15 Feb 2020 16:15:55 +0000 (+0100) Subject: block/qcow2-bitmap: Remove unneeded variable assignment X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5b1405db0fbe4c2600dbaa1a340110a3aecef173;p=qemu.git block/qcow2-bitmap: Remove unneeded variable assignment Fix warning reported by Clang static code analyzer: CC block/qcow2-bitmap.o block/qcow2-bitmap.c:650:5: warning: Value stored to 'ret' is never read ret = -EINVAL; ^ ~~~~~~~ Fixes: 88ddffae8 Reported-by: Clang Static Analyzer Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20200215161557.4077-2-philmd@redhat.com> Reviewed-by: Richard Henderson Reviewed-by: Ján Tomko Reviewed-by: Vladimir Sementsov-Ogievskiy Signed-off-by: Kevin Wolf --- diff --git a/block/qcow2-bitmap.c b/block/qcow2-bitmap.c index d41f5d049b..8cccc2c9f3 100644 --- a/block/qcow2-bitmap.c +++ b/block/qcow2-bitmap.c @@ -647,7 +647,6 @@ static Qcow2BitmapList *bitmap_list_load(BlockDriverState *bs, uint64_t offset, return bm_list; broken_dir: - ret = -EINVAL; error_setg(errp, "Broken bitmap directory"); fail: