From 7144aa92632d70d1b134a64fbd54b0392bb9acd2 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sat, 1 Nov 2014 15:08:01 +0100 Subject: [PATCH] config: remove useless parameter. The 'cfg' passed to parse_port_setting() is never used, so just remove it. Signed-off-by: Richard Cochran --- config.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config.c b/config.c index 1c03fee..d5fa378 100644 --- a/config.c +++ b/config.c @@ -162,7 +162,6 @@ static enum parser_result parse_pod_setting(const char *option, static enum parser_result parse_port_setting(const char *option, const char *value, - struct config *cfg, struct interface *iface) { enum parser_result r; @@ -677,7 +676,7 @@ int config_read(char *name, struct config *cfg) if (current_section == GLOBAL_SECTION) parser_res = parse_global_setting(option, value, cfg); else - parser_res = parse_port_setting(option, value, cfg, current_port); + parser_res = parse_port_setting(option, value, current_port); switch (parser_res) { case PARSED_OK: