From: Chris Wright Date: Wed, 22 Sep 2010 22:54:23 +0000 (-0700) Subject: pciFindStubDriver should return NULL on error X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=12172d18ce7f39c0abf036969e06b7294f07a50f;p=libvirt.git pciFindStubDriver should return NULL on error pciFindStubDriver currently returns 0 in one of the error cases. While it's correct...NULL is more readable. Signed-off-by: Chris Wright --- diff --git a/src/util/pci.c b/src/util/pci.c index a5594766d7..22c66fa42d 100644 --- a/src/util/pci.c +++ b/src/util/pci.c @@ -826,7 +826,7 @@ recheck: char ebuf[1024]; VIR_WARN("failed to load pci-stub or pciback drivers: %s", virStrerror(errno, ebuf, sizeof ebuf)); - return 0; + return NULL; } goto recheck;