diff options
author | Philippe Mathieu-Daudé | 2020-04-22 15:31:45 +0200 |
---|---|---|
committer | Laurent Vivier | 2020-05-04 14:43:24 +0200 |
commit | 1fe5a8c2cd5dc0da03a4246474abf37f0e8cc8c0 (patch) | |
tree | aefc1a7af24080473cfa21d03dd4a54c79c6b15b /hw/input | |
parent | block: Avoid dead assignment (diff) | |
download | qemu-1fe5a8c2cd5dc0da03a4246474abf37f0e8cc8c0.tar.gz qemu-1fe5a8c2cd5dc0da03a4246474abf37f0e8cc8c0.tar.xz qemu-1fe5a8c2cd5dc0da03a4246474abf37f0e8cc8c0.zip |
blockdev: Remove dead assignment
Fix warning reported by Clang static code analyzer:
CC blockdev.o
blockdev.c:2744:5: warning: Value stored to 'ret' is never read
ret = blk_truncate(blk, size, false, PREALLOC_MODE_OFF, errp);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200422133152.16770-3-philmd@redhat.com>
[lv: fix conflict because of "Add flags to blk_truncate()"]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/input')
0 files changed, 0 insertions, 0 deletions