diff options
author | Markus Armbruster <armbru@redhat.com> | 2014-12-03 11:28:02 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-12-10 11:27:02 +0300 |
commit | 4ad608803c46c0acc09114a2e8352742ffd20b6b (patch) | |
tree | 0f2aca0ff6db0daf0d8add3e205a2308ecbdc4fd /qemu-char.c | |
parent | 7251711472a8b406640a62f25f860628d3056bb1 (diff) | |
download | qemu-4ad608803c46c0acc09114a2e8352742ffd20b6b.zip qemu-4ad608803c46c0acc09114a2e8352742ffd20b6b.tar.gz qemu-4ad608803c46c0acc09114a2e8352742ffd20b6b.tar.bz2 |
Drop superfluous conditionals around qemu_opts_del()
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'qemu-char.c')
-rw-r--r-- | qemu-char.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qemu-char.c b/qemu-char.c index a8b01da..ef84b53 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -3825,9 +3825,7 @@ void qemu_chr_delete(CharDriverState *chr) } g_free(chr->filename); g_free(chr->label); - if (chr->opts) { - qemu_opts_del(chr->opts); - } + qemu_opts_del(chr->opts); g_free(chr); } |