From aaca10d7f5a82c999f8af992677308cebd61f335 Mon Sep 17 00:00:00 2001 From: Anjali Nijhara Date: Mon, 19 Jun 2023 16:53:57 +0530 Subject: [PATCH] Fix Coverity Issue This patch fix the below coverity issue: CID-1668747 Change-Id: Ida334a9c6dc4817ba045f99d4f5d6e4a9cd0a9ca --- src/wifi-config.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wifi-config.c b/src/wifi-config.c index 737a177..c172345 100755 --- a/src/wifi-config.c +++ b/src/wifi-config.c @@ -550,9 +550,10 @@ static gboolean _remove_configuration(const gchar *interface_name, const gchar * if (__remove_configuration(dir) != TRUE) { ERR("[%s] is existed, but cannot remove", dir); ret = FALSE; + } else { + INFO("Success to remove [%s]", dir); + ret = TRUE; } - INFO("Success to remove [%s]", dir); - ret = TRUE; } else { ERR("[%s] is not existed", dir); ret = FALSE; -- 2.34.1