mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
udevGetDMIData: remove unused variable
A variable without use is pointless. Remove it, since we have no use for it.
This commit is contained in:
parent
fa89f6c4a3
commit
170c68c4a8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user