No sense incrementing val since we never look at it again.

Cheers,
Jeff

Signed-off-by: Jeff Moyer <jmo...@redhat.com>

diff --git a/modules/mount_autofs.c b/modules/mount_autofs.c
index afb1859..2a5d860 100644
--- a/modules/mount_autofs.c
+++ b/modules/mount_autofs.c
@@ -119,7 +119,7 @@ int mount_mount(struct autofs_point *ap, const char *root, 
const char *name,
                        else if (strncmp(cp, "timeout=", 8) == 0) {
                                char *val = strchr(cp, '=');
                                unsigned tout;
-                               if (val++) {
+                               if (val) {
                                        int ret = sscanf(cp, "timeout=%u", 
&tout);
                                        if (ret)
                                                timeout = tout;

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to