OSDN Git Service

block/qcow2-bitmap: Remove unneeded variable assignment
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sat, 15 Feb 2020 16:15:55 +0000 (17:15 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 18 Feb 2020 09:53:56 +0000 (10:53 +0100)
commit5b1405db0fbe4c2600dbaa1a340110a3aecef173
tree45fb22c94ee9ca37e7ecb2a9257fa94a08feae96
parenta0cf8daf77548786ced84d773f06fc70571c5d38
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é <philmd@redhat.com>
Message-Id: <20200215161557.4077-2-philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-bitmap.c