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

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