aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-05-16 09:42:55 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2017-05-16 15:34:18 +0100
commitcdece0467c00007cf8e3f4b3c3f0b13bf2c4fea9 (patch)
treee4cbd0daf58e239f4fa8180642f15c5fa3832545
parent612fc05ad210abfba656f2da89120041039c0b57 (diff)
downloadqemu-cdece0467c00007cf8e3f4b3c3f0b13bf2c4fea9.zip
qemu-cdece0467c00007cf8e3f4b3c3f0b13bf2c4fea9.tar.gz
qemu-cdece0467c00007cf8e3f4b3c3f0b13bf2c4fea9.tar.bz2
block/win32: fix 'ret not initialized' warning
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: Fam Zheng <famz@redhat.com> Message-id: 20170516074256.24731-1-kraxel@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r--block/file-win32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/file-win32.c b/block/file-win32.c
index 1a35dba..8f14f0b 100644
--- a/block/file-win32.c
+++ b/block/file-win32.c
@@ -346,6 +346,7 @@ static int raw_open(BlockDriverState *bs, QDict *options, int flags,
if (qdict_get_try_bool(options, "locking", false)) {
error_setg(errp, "locking=on is not supported on Windows");
+ ret = -EINVAL;
goto fail;
}