From 33106527ed3c703d587d7cefbbf3ca8ca1741862 Mon Sep 17 00:00:00 2001 From: vdutta Date: Thu, 13 Oct 2022 17:44:17 +0530 Subject: [PATCH] Fix compilation issue --- dmtree/tr181/deviceinfo.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dmtree/tr181/deviceinfo.c b/dmtree/tr181/deviceinfo.c index 5114e8d1..521e42bc 100644 --- a/dmtree/tr181/deviceinfo.c +++ b/dmtree/tr181/deviceinfo.c @@ -64,10 +64,7 @@ static bool is_update_process_allowed(void) char *tr069_status = NULL; if (dmubus_object_exist("tr069")) { - struct uci_section *s = NULL, *stmp = NULL; - uci_path_foreach_sections_safe(varstate, "cwmp", "sess_status", stmp, s) { - dmuci_get_value_by_section_string(s, "current_status", &tr069_status); - } + dmuci_get_option_value_string_varstate("cwmp", "sess_status", "current_status", &tr069_status); } if (tr069_status == NULL)