From 12172d18ce7f39c0abf036969e06b7294f07a50f Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Wed, 22 Sep 2010 15:54:23 -0700 Subject: [PATCH] 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 --- src/util/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;