aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-03-01 16:14:35 +0100
committerJim Meyering <meyering@redhat.com>2010-03-01 16:29:42 +0100
commita3301b71f6826252ac5b8d111436b18f2c778f7f (patch)
tree545d0b60046955289b3176a68757f8f8ec77ad74 /src/node_device
parentqemudNetworkIfaceConnect: remove dead store (diff)
downloadlibvirt-a3301b71f6826252ac5b8d111436b18f2c778f7f.tar.gz
libvirt-a3301b71f6826252ac5b8d111436b18f2c778f7f.tar.bz2
libvirt-a3301b71f6826252ac5b8d111436b18f2c778f7f.zip
udevEnumerateDevices: remove dead code
* src/node_device/node_device_udev.c (udevEnumerateDevices): Remove unnecessary call to udev_list_entry_get_name.
Diffstat (limited to 'src/node_device')
-rw-r--r--src/node_device/node_device_udev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_device_udev.c
index 68509f41e..eee44c47f 100644
--- a/src/node_device/node_device_udev.c
+++ b/src/node_device/node_device_udev.c
@@ -1,7 +1,7 @@
/*
* 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: