config: remove useless parameter.

The 'cfg' passed to parse_port_setting() is never used, so just remove it.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2014-11-01 15:08:01 +01:00
parent 5b36399e35
commit 7144aa9263
1 changed files with 1 additions and 2 deletions

View File

@ -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: