Blame SOURCES/autofs-5.1.7-remove-unused-parameter-form-do_mount_autofs_offset.patch

29d2b9
autofs-5.1.7 - remove unused parameter form do_mount_autofs_offset()
29d2b9
29d2b9
From: Ian Kent <raven@themaw.net>
29d2b9
29d2b9
The offset parameter of do_mount_autofs_offset() isn't used.
29d2b9
29d2b9
Signed-off-by: Ian Kent <raven@themaw.net>
29d2b9
---
29d2b9
 CHANGELOG    |    1 +
29d2b9
 lib/mounts.c |   10 ++++------
29d2b9
 2 files changed, 5 insertions(+), 6 deletions(-)
29d2b9
29d2b9
diff --git a/CHANGELOG b/CHANGELOG
29d2b9
index 45be4783..3eda995c 100644
29d2b9
--- a/CHANGELOG
29d2b9
+++ b/CHANGELOG
29d2b9
@@ -10,6 +10,7 @@
29d2b9
 - simplify cache_get_parent().
29d2b9
 - set offset parent in update_offset_entry().
29d2b9
 - remove redundant variables from mount_autofs_offset().
29d2b9
+- remove unused parameter form do_mount_autofs_offset().
29d2b9
 
29d2b9
 25/01/2021 autofs-5.1.7
29d2b9
 - make bind mounts propagation slave by default.
29d2b9
diff --git a/lib/mounts.c b/lib/mounts.c
29d2b9
index 12d22023..8e88182f 100644
29d2b9
--- a/lib/mounts.c
29d2b9
+++ b/lib/mounts.c
29d2b9
@@ -2472,9 +2472,7 @@ out:
29d2b9
 }
29d2b9
 
29d2b9
 static int do_mount_autofs_offset(struct autofs_point *ap,
29d2b9
-				  struct mapent *oe, const char *root,
29d2b9
-				  char *offset)
29d2b9
-
29d2b9
+				  struct mapent *oe, const char *root)
29d2b9
 {
29d2b9
 	int mounted = 0;
29d2b9
 	int ret;
29d2b9
@@ -2529,7 +2527,7 @@ int mount_multi_triggers(struct autofs_point *ap, struct mapent *me,
29d2b9
 		if (!oe || !oe->mapent)
29d2b9
 			goto cont;
29d2b9
 
29d2b9
-		mounted += do_mount_autofs_offset(ap, oe, root, offset);
29d2b9
+		mounted += do_mount_autofs_offset(ap, oe, root);
29d2b9
 
29d2b9
 		/*
29d2b9
 		 * If re-constructing a multi-mount it's necessary to walk
29d2b9
@@ -2666,7 +2664,7 @@ int umount_multi_triggers(struct autofs_point *ap, struct mapent *me, char *root
29d2b9
 			 */
29d2b9
 			ret = rmdir_path_offset(ap, oe);
29d2b9
 			if (ret == -1 && !stat(oe->key, &st)) {
29d2b9
-				ret = do_mount_autofs_offset(ap, oe, root, offset);
29d2b9
+				ret = do_mount_autofs_offset(ap, oe, root);
29d2b9
 				if (ret)
29d2b9
 					left++;
29d2b9
 				/* But we did origianlly create this */
29d2b9
@@ -2847,7 +2845,7 @@ int clean_stale_multi_triggers(struct autofs_point *ap,
29d2b9
 			 */
29d2b9
 			ret = rmdir_path_offset(ap, oe);
29d2b9
 			if (ret == -1 && !stat(oe->key, &st)) {
29d2b9
-				ret = do_mount_autofs_offset(ap, oe, root, offset);
29d2b9
+				ret = do_mount_autofs_offset(ap, oe, root);
29d2b9
 				if (ret) {
29d2b9
 					left++;
29d2b9
 					/* But we did origianlly create this */