mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user