libvirt/src/interface
Christophe Fergeau 68eb3709a1 netcf: Don't complain when cleanup is called before init
netcfStateInitialize() initializes the driverState variable,
and when netcfStateCleanup is called, it will call virReportError()
if driverState is NULL.
This is not consistent with what other state objects are doing,
they return -1 without reporting an error in such cases.

See also
https://www.redhat.com/archives/libvir-list/2013-October/msg00809.html:

On Thu, Oct 17, 2013 at 01:40:19PM +0100, Daniel P. Berrange wrote:
> We don't want virStateCleanup to skip execution if virStateInitialize
> has failed though - every callback in virStateCleanup should be written
> to be safe if its corresponding init function hasn't run.
2013-10-18 14:31:51 +02:00
..
interface_backend_netcf.c netcf: Don't complain when cleanup is called before init 2013-10-18 14:31:51 +02:00
interface_backend_udev.c Convert 'int i' to 'size_t i' in src/interface/ files 2013-07-10 17:55:16 +01:00
interface_driver.c Convert HAVE_UDEV to WITH_UDEV 2013-01-14 13:26:47 +00:00
interface_driver.h interface: always build all available backends 2012-10-09 09:44:51 -06:00