Skip to contentSkip to conversation

mount_autofs.c:mount_mount no need to increment val

PATCH New Jeff Moyer 1 participant 1 message Sep 4, 2009 Kernel automounter

lore
Share & tools
lore

Jeff Moyer

author
#0 lore raw

PATCH 1/1 mount_autofs.c:mount_mount no need to increment val

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

Cheers,
Jeff

modules/mount_autofs.c +1 -1
index afb1859..2a5d860 100644
@@ -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;