提交 170c68c4 编写于 作者: J Ján Tomko

udevGetDMIData: remove unused variable

A variable without use is pointless.

Remove it, since we have no use for it.
上级 fa89f6c4
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册