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:
Wang King 2017-04-27 09:52:52 +08:00 committed by Erik Skultety
parent 23377c539b
commit 81bbdafb96

View File

@ -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);