]> xenbits.xensource.com Git - libvirt.git/commit
misc: Drop useless checks from *Dispose() functions
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 23 May 2019 10:10:21 +0000 (12:10 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 23 May 2019 11:59:06 +0000 (13:59 +0200)
commitce0037442fb9fec295898b528f550e1cbd9e820f
tree8de911b60f509bf60e77b901fbb01acb27040764
parent69a8c64f4b875f0e61f59faa605c31573b06a62a
misc: Drop useless checks from *Dispose() functions

Due to the way that our virObjectUnref() is written it's not
possible that a NULL is passed into *Dispose() function. However,
some functions check for that regardless.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/conf/domain_conf.c
src/conf/virstorageobj.c
src/rpc/virnetsshsession.c
src/util/virhostdev.c