]> Git Repo - qemu.git/blobdiff - block.c
Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging
[qemu.git] / block.c
diff --git a/block.c b/block.c
index 39ddea34111d390daffd8f75cb164fe42e2271f0..a0346c80c667c74514cf3be5c9c028986b1843ec 100644 (file)
--- a/block.c
+++ b/block.c
@@ -1851,7 +1851,7 @@ static BlockDriverState *bdrv_open_inherit(const char *filename,
     bdrv_refresh_filename(bs);
 
     /* Check if any unknown options were used */
-    if (options && (qdict_size(options) != 0)) {
+    if (qdict_size(options) != 0) {
         const QDictEntry *entry = qdict_first(options);
         if (flags & BDRV_O_PROTOCOL) {
             error_setg(errp, "Block protocol '%s' doesn't support the option "
This page took 0.019738 seconds and 4 git commands to generate.