From 81bbdafb962f4e5f7699f63071ad84fb34cf353d Mon Sep 17 00:00:00 2001 From: Wang King Date: Thu, 27 Apr 2017 09:52:52 +0800 Subject: [PATCH] util: Drop unused var @errbuf from virPCIGetDeviceAddressFromSysfsLink Commit @a7035662 forgot to remove it when doing a refactor. Signed-off-by: Erik Skultety --- src/util/virpci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/util/virpci.c b/src/util/virpci.c index c89b94b5f1..83c7e7414c 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -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); -- GitLab