mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00: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:
parent
c5acd3769f
commit
12172d18ce
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user