From: Anjali Nijhara Date: Mon, 19 Jun 2023 11:23:57 +0000 (+0530) Subject: Fix Coverity Issue X-Git-Tag: accepted/tizen/unified/20230628.023645~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aaca10d7f5a82c999f8af992677308cebd61f335;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git Fix Coverity Issue This patch fix the below coverity issue: CID-1668747 Change-Id: Ida334a9c6dc4817ba045f99d4f5d6e4a9cd0a9ca --- 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;