]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Combine if condition in virDomainObjUpdateModificationImpact
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Wed, 24 Feb 2016 08:38:36 +0000 (11:38 +0300)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 1 Mar 2016 15:41:53 +0000 (10:41 -0500)
commit9dc19806f649fbdcb5d4dfda0ed0e3a79aa1c190
tree1d8d41b5ed02de998aa5d0b46b06a56b00aaa072
parent751033a2e4af5197e56f5f3fc1e327b8d83f2f1a
conf: Combine if condition in virDomainObjUpdateModificationImpact

Prior to commit id '3d021381' virDomainObjUpdateModificationImpact was
part of virDomainLiveConfigHelperMethod and the *flags if condition
VIR_DOMAIN_AFFECT_CONFIG checked the ->persistent boolean and made the
virDomainObjGetPersistentDef call.

Since the functions were split the ->persistent check is all that remained
and thus could be combined into one if statement.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Signed-off-by: John Ferlan <jferlan@redhat.com>
src/conf/domain_conf.c