summaryrefslogtreecommitdiff
path: root/blockdev.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2013-09-28 11:55:14 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2013-10-02 22:55:28 +0400
commit3a6f2703268c99f2f2f0a93f2fbacec7b039fd36 (patch)
tree2bde04bccf82dcd9f4ade6e2feacbe48a068389b /blockdev.c
parent016e9d62fe66d40eff09d069714f3ccfd2066d79 (diff)
downloadqemu-3a6f2703268c99f2f2f0a93f2fbacec7b039fd36.tar.gz
qemu-3a6f2703268c99f2f2f0a93f2fbacec7b039fd36.tar.bz2
qemu-3a6f2703268c99f2f2f0a93f2fbacec7b039fd36.zip
block: Remove unused assignment (fixes warning from clang)
blockdev.c:1929:13: warning: Value stored to 'ret' is never read ret = 0; ^ ~ Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'blockdev.c')
-rw-r--r--blockdev.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/blockdev.c b/blockdev.c
index 8aa66a949c..8c83f6f1ca 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -1926,7 +1926,6 @@ void qmp_drive_mirror(const char *device, const char *target,
} else {
switch (mode) {
case NEW_IMAGE_MODE_EXISTING:
- ret = 0;
break;
case NEW_IMAGE_MODE_ABSOLUTE_PATHS:
/* create new image with backing file */