From 170c68c4a84c101f84b0007d18ada5ffe7c60c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Fri, 3 Jun 2016 13:43:25 +0200 Subject: [PATCH] udevGetDMIData: remove unused variable A variable without use is pointless. Remove it, since we have no use for it. --- src/node_device/node_device_udev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_device_udev.c index f443d5805d..59bc452c00 100644 --- a/src/node_device/node_device_udev.c +++ b/src/node_device/node_device_udev.c @@ -1576,7 +1576,6 @@ udevGetDMIData(virNodeDevCapDataPtr data) { struct udev *udev = NULL; struct udev_device *device = NULL; - char *tmp = NULL; udev = udev_monitor_get_udev(DRV_STATE_UDEV_MONITOR(driver)); @@ -1637,7 +1636,6 @@ udevGetDMIData(virNodeDevCapDataPtr data) } out: - VIR_FREE(tmp); if (device != NULL) udev_device_unref(device); return; -- GitLab