The 'cfg' passed to parse_port_setting() is never used, so just remove it.
Signed-off-by: Richard Cochran <[email protected]>
---
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:
--
1.7.10.4
------------------------------------------------------------------------------
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel