All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] block/win32: fix 'ret not initialized' warning
@ 2017-05-16  7:42 Gerd Hoffmann
  2017-05-16  7:52 ` Stefan Weil
  2017-05-16 14:34 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
  0 siblings, 2 replies; 4+ messages in thread
From: Gerd Hoffmann @ 2017-05-16  7:42 UTC (permalink / raw)
  To: qemu-devel
  Cc: Gerd Hoffmann, Kevin Wolf, Max Reitz, Stefan Weil, open list:raw

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 block/file-win32.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/block/file-win32.c b/block/file-win32.c
index 1a35dbabf2..8f14f0bdcd 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;
     }
 
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-16 14:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-16  7:42 [Qemu-devel] [PATCH] block/win32: fix 'ret not initialized' warning Gerd Hoffmann
2017-05-16  7:52 ` Stefan Weil
2017-05-16  8:03   ` Fam Zheng
2017-05-16 14:34 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.