]> xenbits.xensource.com Git - libvirt.git/commit
conf: Remove do-nothing validation functions
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 13 Jan 2012 03:39:26 +0000 (14:39 +1100)
committerEric Blake <eblake@redhat.com>
Fri, 13 Jan 2012 23:18:03 +0000 (16:18 -0700)
commitbfbbc49638630e09766bc601c95d14a0155d79a8
tree2df3e2dd77c7d16d90986979fdd635dbf400335a
parent4b942fe8606ec46451ee07f9c2c3cc23399bf9a7
conf: Remove do-nothing validation functions

There are three address validation routines that do nothing:
  virDomainDeviceDriveAddressIsValid()
  virDomainDeviceUSBAddressIsValid()
  virDomainDeviceVirtioSerialAddressIsValid()

Remove them, and replace their call sites with "1" which is what they
currently return. In some cases this means we can remove an entire
if block.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
src/conf/domain_conf.c
src/conf/domain_conf.h