Blame SOURCES/autofs-5.1.7-remove-unused-function-master_submount_list_empty.patch

beb904
autofs-5.1.7 - remove unused function master_submount_list_empty()
beb904
beb904
From: Ian Kent <raven@themaw.net>
beb904
beb904
This function is not used anywhere now, remove it.
beb904
beb904
Signed-off-by: Ian Kent <raven@themaw.net>
beb904
---
beb904
 CHANGELOG        |    1 +
beb904
 daemon/master.c  |   12 ------------
beb904
 include/master.h |    1 -
beb904
 3 files changed, 1 insertion(+), 13 deletions(-)
beb904
beb904
--- autofs-5.1.4.orig/CHANGELOG
beb904
+++ autofs-5.1.4/CHANGELOG
beb904
@@ -45,6 +45,7 @@
beb904
 - remove redundant local var from sun_mount().
beb904
 - use mount_fullpath() in one spot in parse_mount().
beb904
 - pass root length to mount_fullpath().
beb904
+- remove unused function master_submount_list_empty().
beb904
 
beb904
 xx/xx/2018 autofs-5.1.5
beb904
 - fix flag file permission.
beb904
--- autofs-5.1.4.orig/daemon/master.c
beb904
+++ autofs-5.1.4/daemon/master.c
beb904
@@ -1119,18 +1119,6 @@ int master_read_master(struct master *ma
beb904
 	return 1;
beb904
 }
beb904
 
beb904
-int master_submount_list_empty(struct autofs_point *ap)
beb904
-{
beb904
-	int res = 0;
beb904
-
beb904
-	mounts_mutex_lock(ap);
beb904
-	if (list_empty(&ap->submounts))
beb904
-		res = 1;
beb904
-	mounts_mutex_unlock(ap);
beb904
-
beb904
-	return res;
beb904
-}
beb904
-
beb904
 int master_notify_submount(struct autofs_point *ap, const char *path, enum states state)
beb904
 {
beb904
 	struct mnt_list *this, *sbmnt;
beb904
--- autofs-5.1.4.orig/include/master.h
beb904
+++ autofs-5.1.4/include/master.h
beb904
@@ -116,7 +116,6 @@ void master_free_mapent_sources(struct m
beb904
 void master_free_mapent(struct master_mapent *);
beb904
 struct master *master_new(const char *, unsigned int, unsigned int);
beb904
 int master_read_master(struct master *, time_t);
beb904
-int master_submount_list_empty(struct autofs_point *ap);
beb904
 int master_notify_submount(struct autofs_point *, const char *path, enum states);
beb904
 void master_notify_state_change(struct master *, int);
beb904
 int master_mount_mounts(struct master *, time_t);