]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainDeviceDefPostParse: Drop useless checks
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 23 Sep 2015 08:03:10 +0000 (10:03 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 24 Sep 2015 05:31:47 +0000 (07:31 +0200)
commitcde3b97a26eaefd2db233f940e1111c24a948a91
tree11f889b0bfc49c841a9b51b8f2fbb8c1a780ddcb
parent7acfb940f712980415e82a46a7de7adb11163a10
qemuDomainDeviceDefPostParse: Drop useless checks

Now that virQEMUDriverCreateXMLConf is never called with NULL
(after 086f37e97aab) we can safely drop useless check in
qemuDomainDeviceDefPostParse as we are guaranteed to be always
called with the driver initialized. Therefore checking if driver
is NULL makes no sense. Moreover, if we mix it with direct driver
dereference. And after that, we are sure that nor @cfg will be
NULL, therefore we can drop checks for that too.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c