Patchwork [06/24] petitboot: Remove unneeded conf strip

login
register
mail settings
Submitter Geoff Levand
Date April 13, 2009, 1:11 a.m.
Message ID <20090413011136.948216253@am.sony.com>
Download mbox | patch
Permalink /patch/25875/
State Accepted
Headers show

Comments

Geoff Levand - April 13, 2009, 1:11 a.m.
conf_get_param_pair() already runs conf_strip_str() on value,
so remove a redundent conf_strip_str() call.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
 discover/parser-conf.c |    5 -----
 1 file changed, 5 deletions(-)

Patch

--- a/discover/parser-conf.c
+++ b/discover/parser-conf.c
@@ -187,11 +187,6 @@  static void conf_parse_buf(struct conf_c
 		if (*value == '#')
 			continue;
 
-		value = conf_strip_str(value);
-
-		if (!value)
-			continue;
-
 		conf->process_pair(conf, name, value);
 	}