block/win32: fix 'ret not initialized' warning
PATCH 1/1 block/win32: fix 'ret not initialized' warning
Signed-off-by Gerd Hoffmann <[email protected]>
--- block/file-win32.c | 1 + 1 file changed, 1 insertion(+)
block/file-win32.c +1 -0
@@ -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; }
Signature · 1 line
2.9.3
Am 16.05.2017 um 09:42 schrieb Gerd Hoffmann:
Quoted 10 lines
Signed-off-by Gerd Hoffmann <[email protected]>--- block/file-win32.c | 1 + 1 file changed, 1 insertion(+)block/file-win32.c +0
-0
block/file-win32.c static int raw_open(BlockDriverState *bs, QDict *options, int flags, · line 351
Quoted 6 lines
block/file-win32.c +1
-0@@ -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; }
This is a bug fix for commit 1c3a555c.
Reviewed-by Stefan Weil <[email protected]>
Fam Zheng
Reviewed-byQuoted 21 lines · Stefan Weil
Am 16.05.2017 um 09:42 schrieb Gerd Hoffmann:
Quoted 10 lines
Signed-off-by Gerd Hoffmann <[email protected]>--- block/file-win32.c | 1 + 1 file changed, 1 insertion(+)block/file-win32.c +0
-0block/file-win32.c static int raw_open(BlockDriverState *bs, QDict *options, int flags, · line 351
Quoted 6 lines
block/file-win32.c +1
-0@@ -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; }This is a bug fix for commit
1c3a555c.
Quoted 3 lines
Reviewed-by Stefan Weil <[email protected]>
Thank you!
Reviewed-by Fam Zheng <[email protected]>
Stefan Hajnoczi
AppliedQuoted 4 lines · Gerd Hoffmann
Signed-off-by Gerd Hoffmann <[email protected]>--- block/file-win32.c | 1 + 1 file changed, 1 insertion(+)
Thanks, applied to my staging tree:
https://github.com/stefanha/qemu/commits/staging
Stefan