提交 a3301b71 编写于 作者: J Jim Meyering

udevEnumerateDevices: remove dead code

* src/node_device/node_device_udev.c (udevEnumerateDevices): Remove
unnecessary call to udev_list_entry_get_name.
上级 546d1f40
/*
* node_device_udev.c: node device enumeration - libudev implementation
*
* Copyright (C) 2009 Red Hat
* Copyright (C) 2009-2010 Red Hat
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -1337,7 +1337,6 @@ static int udevEnumerateDevices(struct udev *udev)
{
struct udev_enumerate *udev_enumerate = NULL;
struct udev_list_entry *list_entry = NULL;
const char *name = NULL;
int ret = 0;
udev_enumerate = udev_enumerate_new(udev);
......@@ -1352,7 +1351,6 @@ static int udevEnumerateDevices(struct udev *udev)
udev_enumerate_get_list_entry(udev_enumerate)) {
udevProcessDeviceListEntry(udev, list_entry);
name = udev_list_entry_get_name(list_entry);
}
out:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册