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 <chrisw@redhat.com>
This commit is contained in:
Chris Wright 2010-09-22 15:54:23 -07:00 committed by Eric Blake
parent c5acd3769f
commit 12172d18ce

View File

@ -826,7 +826,7 @@ recheck:
char ebuf[1024]; char ebuf[1024];
VIR_WARN("failed to load pci-stub or pciback drivers: %s", VIR_WARN("failed to load pci-stub or pciback drivers: %s",
virStrerror(errno, ebuf, sizeof ebuf)); virStrerror(errno, ebuf, sizeof ebuf));
return 0; return NULL;
} }
goto recheck; goto recheck;