mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
util: Drop unused var @errbuf from virPCIGetDeviceAddressFromSysfsLink
Commit @a7035662 forgot to remove it when doing a refactor. Signed-off-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
23377c539b
commit
81bbdafb96
@ -2618,7 +2618,6 @@ virPCIGetDeviceAddressFromSysfsLink(const char *device_link)
|
||||
virPCIDeviceAddressPtr bdf = NULL;
|
||||
char *config_address = NULL;
|
||||
char *device_path = NULL;
|
||||
char errbuf[64];
|
||||
|
||||
if (!virFileExists(device_link)) {
|
||||
VIR_DEBUG("'%s' does not exist", device_link);
|
||||
@ -2627,7 +2626,6 @@ virPCIGetDeviceAddressFromSysfsLink(const char *device_link)
|
||||
|
||||
device_path = canonicalize_file_name(device_link);
|
||||
if (device_path == NULL) {
|
||||
memset(errbuf, '\0', sizeof(errbuf));
|
||||
virReportSystemError(errno,
|
||||
_("Failed to resolve device link '%s'"),
|
||||
device_link);
|
||||
|
Loading…
Reference in New Issue
Block a user