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

49b67f
autofs-5.1.7 - remove unused parameter form do_mount_autofs_offset()
49b67f
49b67f
From: Ian Kent <raven@themaw.net>
49b67f
49b67f
The offset parameter of do_mount_autofs_offset() isn't used.
49b67f
49b67f
Signed-off-by: Ian Kent <raven@themaw.net>
49b67f
---
49b67f
 CHANGELOG    |    1 +
49b67f
 lib/mounts.c |   10 ++++------
49b67f
 2 files changed, 5 insertions(+), 6 deletions(-)
49b67f
49b67f
--- autofs-5.1.4.orig/CHANGELOG
49b67f
+++ autofs-5.1.4/CHANGELOG
49b67f
@@ -9,6 +9,7 @@
49b67f
 - simplify cache_get_parent().
49b67f
 - set offset parent in update_offset_entry().
49b67f
 - remove redundant variables from mount_autofs_offset().
49b67f
+- remove unused parameter form do_mount_autofs_offset().
49b67f
 
49b67f
 xx/xx/2018 autofs-5.1.5
49b67f
 - fix flag file permission.
49b67f
--- autofs-5.1.4.orig/lib/mounts.c
49b67f
+++ autofs-5.1.4/lib/mounts.c
49b67f
@@ -2466,9 +2466,7 @@ out:
49b67f
 }
49b67f
 
49b67f
 static int do_mount_autofs_offset(struct autofs_point *ap,
49b67f
-				  struct mapent *oe, const char *root,
49b67f
-				  char *offset)
49b67f
-
49b67f
+				  struct mapent *oe, const char *root)
49b67f
 {
49b67f
 	int mounted = 0;
49b67f
 	int ret;
49b67f
@@ -2523,7 +2521,7 @@ int mount_multi_triggers(struct autofs_p
49b67f
 		if (!oe || !oe->mapent)
49b67f
 			goto cont;
49b67f
 
49b67f
-		mounted += do_mount_autofs_offset(ap, oe, root, offset);
49b67f
+		mounted += do_mount_autofs_offset(ap, oe, root);
49b67f
 
49b67f
 		/*
49b67f
 		 * If re-constructing a multi-mount it's necessary to walk
49b67f
@@ -2660,7 +2658,7 @@ int umount_multi_triggers(struct autofs_
49b67f
 			 */
49b67f
 			ret = rmdir_path_offset(ap, oe);
49b67f
 			if (ret == -1 && !stat(oe->key, &st)) {
49b67f
-				ret = do_mount_autofs_offset(ap, oe, root, offset);
49b67f
+				ret = do_mount_autofs_offset(ap, oe, root);
49b67f
 				if (ret)
49b67f
 					left++;
49b67f
 				/* But we did origianlly create this */
49b67f
@@ -2841,7 +2839,7 @@ int clean_stale_multi_triggers(struct au
49b67f
 			 */
49b67f
 			ret = rmdir_path_offset(ap, oe);
49b67f
 			if (ret == -1 && !stat(oe->key, &st)) {
49b67f
-				ret = do_mount_autofs_offset(ap, oe, root, offset);
49b67f
+				ret = do_mount_autofs_offset(ap, oe, root);
49b67f
 				if (ret) {
49b67f
 					left++;
49b67f
 					/* But we did origianlly create this */