From: Anjali Nijhara Date: Tue, 25 Jul 2023 05:56:39 +0000 (+0530) Subject: Fix logical dead code issue X-Git-Tag: accepted/tizen/unified/20230728.155754^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen;p=platform%2Fcore%2Fconnectivity%2Fwifi-direct-manager.git Fix logical dead code issue Coverity Issue - 1678363 Change-Id: Ic4fc99bbc4f174261bfc6cb63ff8951ce0f802c9 --- diff --git a/plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c b/plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c index 1adbfff..16b706e 100644 --- a/plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c +++ b/plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c @@ -3945,10 +3945,9 @@ static int __ws_check_net_interface(char* if_name) if (ifr.ifr_flags & IFF_UP) { WDP_LOGD("%s interface is up", if_name); return 1; - } else if (!(ifr.ifr_flags & IFF_UP)) { - WDP_LOGD("%s interface is down", if_name); - return 0; } + + WDP_LOGD("%s interface is down", if_name); return 0; }