diff options
author | Paolo Bonzini | 2017-01-04 15:59:14 +0100 |
---|---|---|
committer | Michael Tokarev | 2017-01-24 21:26:53 +0100 |
commit | 7ad2757feffd13b8000826ae3df2a3bc929d688d (patch) | |
tree | f02d3d4e9d5af08506902c85b1862668c253e812 /block.c | |
parent | pci-assign: avoid pointless stat (diff) | |
download | qemu-7ad2757feffd13b8000826ae3df2a3bc929d688d.tar.gz qemu-7ad2757feffd13b8000826ae3df2a3bc929d688d.tar.xz qemu-7ad2757feffd13b8000826ae3df2a3bc929d688d.zip |
block: remove dead check
options must be non-NULL here, because a NULL value is replaced with
qdict_new earlier in the function. Reported by Coverity.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 " |