From 3cd999043ae619ddcc78e97f0b5a8e11bf751470 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Tue, 10 Dec 2013 06:28:00 -0500 Subject: [PATCH 1/5] udev: drop 'udev' field from udev_list struct This is being used from absolutely nowhere, but is set from udev_list_init(). Drop it. https://bugs.freedesktop.org/show_bug.cgi?id=72562 --- src/libudev/libudev-list.c | 1 - src/libudev/libudev-private.h | 1 - 2 files changed, 2 deletions(-) diff --git a/src/libudev/libudev-list.c b/src/libudev/libudev-list.c index 1cf53b0..530cc03 100644 --- a/src/libudev/libudev-list.c +++ b/src/libudev/libudev-list.c @@ -96,7 +96,6 @@ static inline struct udev_list_entry *list_node_to_entry(struct udev_list_node * void udev_list_init(struct udev *udev, struct udev_list *list, bool unique) { memset(list, 0x00, sizeof(struct udev_list)); - list->udev = udev; list->unique = unique; udev_list_node_init(&list->node); } diff --git a/src/libudev/libudev-private.h b/src/libudev/libudev-private.h index af0f125..6b62c56 100644 --- a/src/libudev/libudev-private.h +++ b/src/libudev/libudev-private.h @@ -103,7 +103,6 @@ struct udev_list_node { struct udev_list_node *next, *prev; }; struct udev_list { - struct udev *udev; struct udev_list_node node; struct udev_list_entry **entries; unsigned int entries_cur; -- 1.8.4.2