Skip to contentSkip to conversation

parse_sun.c: get rid of unused optlen variable

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 parse_sun.c: get rid of unused optlen variable

I couldn't find a reason to keep this around. We don't walk this options string, so it isn't used to make sure we don't walk off the end. So, get rid of it.

Cheers,
Jeff

modules/parse_sun.c +1 -2
index db36ae2..921daf4 100644
@@ -1334,7 +1334,7 @@ int parse_mount(struct autofs_point *ap, const char *name,
 	char *pmapent, *options;
 	const char *p;
 	int mapent_len, rv = 0;
-	int optlen, cur_state;
+	int cur_state;
 	int slashify = ctxt->slashify_colons;
 	unsigned int append_options;
 
@@ -1389,7 +1389,6 @@ int parse_mount(struct autofs_point *ap, const char *name,
 		logerr(MODPREFIX "strdup: %s", estr);
 		return 1;
 	}
-	optlen = strlen(options);
 
 	p = skipspace(pmapent);