summaryrefslogtreecommitdiffstats
path: root/blockdev.c
diff options
context:
space:
mode:
authorMarkus Armbruster2014-09-29 16:07:55 +0200
committerStefan Hajnoczi2014-10-03 11:30:33 +0200
commitfbf28a4328123b3259d100eedc0e6f5b7f8bf186 (patch)
tree18d8f7c2c1ba743c652cede62414f157e8772d47 /blockdev.c
parentssh: Don't crash if either host or path is not specified. (diff)
downloadqemu-fbf28a4328123b3259d100eedc0e6f5b7f8bf186.tar.gz
qemu-fbf28a4328123b3259d100eedc0e6f5b7f8bf186.tar.xz
qemu-fbf28a4328123b3259d100eedc0e6f5b7f8bf186.zip
block: Drop superfluous conditionals around qemu_opts_del()
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 1411999675-14533-1-git-send-email-armbru@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'blockdev.c')
-rw-r--r--blockdev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/blockdev.c b/blockdev.c
index ad436488b7..2f441c5343 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -224,9 +224,7 @@ void drive_info_del(DriveInfo *dinfo)
if (!dinfo) {
return;
}
- if (dinfo->opts) {
- qemu_opts_del(dinfo->opts);
- }
+ qemu_opts_del(dinfo->opts);
g_free(dinfo->id);
QTAILQ_REMOVE(&drives, dinfo, next);
g_free(dinfo->serial);