Blame SOURCES/autofs-5.1.5-remove-unused-function-reverse_mnt_list.patch

304803
autofs-5.1.5 - remove unused function reverse_mnt_list()
304803
304803
From: Ian Kent <raven@themaw.net>
304803
304803
This function is not used, remove it.
304803
304803
Signed-off-by: Ian Kent <raven@themaw.net>
304803
---
304803
 CHANGELOG        |    1 +
304803
 include/mounts.h |    1 -
304803
 lib/mounts.c     |   21 ---------------------
304803
 3 files changed, 1 insertion(+), 22 deletions(-)
304803
304803
--- autofs-5.0.7.orig/CHANGELOG
304803
+++ autofs-5.0.7/CHANGELOG
304803
@@ -330,6 +330,7 @@
304803
 - fix macro expansion in selector values.
304803
 - fix reset flex scan buffer on init.
304803
 - remove unused function has_fstab_option().
304803
+- remove unused function reverse_mnt_list().
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
--- autofs-5.0.7.orig/include/mounts.h
304803
+++ autofs-5.0.7/include/mounts.h
304803
@@ -100,7 +100,6 @@ int ext_mount_add(struct list_head *, co
304803
 int ext_mount_remove(struct list_head *, const char *);
304803
 int ext_mount_inuse(const char *);
304803
 struct mnt_list *get_mnt_list(const char *table, const char *path, int include);
304803
-struct mnt_list *reverse_mnt_list(struct mnt_list *list);
304803
 void free_mnt_list(struct mnt_list *list);
304803
 int is_mounted(const char *table, const char *path, unsigned int type);
304803
 void tree_free_mnt_tree(struct mnt_list *tree);
304803
--- autofs-5.0.7.orig/lib/mounts.c
304803
+++ autofs-5.0.7/lib/mounts.c
304803
@@ -895,27 +895,6 @@ struct mnt_list *get_mnt_list(const char
304803
 	return list;
304803
 }
304803
 
304803
-/*
304803
- * Reverse a list of mounts
304803
- */
304803
-struct mnt_list *reverse_mnt_list(struct mnt_list *list)
304803
-{
304803
-	struct mnt_list *next, *last;
304803
-
304803
-	if (!list)
304803
-		return NULL;
304803
-
304803
-	next = list;
304803
-	last = NULL;
304803
-	while (next) {
304803
-		struct mnt_list *this = next;
304803
-		next = this->next;
304803
-		this->next = last;
304803
-		last = this;
304803
-	}
304803
-	return last;
304803
-}
304803
-
304803
 void free_mnt_list(struct mnt_list *list)
304803
 {
304803
 	struct mnt_list *next;