Fix logical dead code issue 01/296301/1 accepted/tizen_8.0_unified accepted/tizen_unified tizen tizen_8.0 accepted/tizen/8.0/unified/20231005.093256 accepted/tizen/unified/20230728.155754 tizen_8.0_m2_release
authorAnjali Nijhara <a.nijhara@samsung.com>
Tue, 25 Jul 2023 05:56:39 +0000 (11:26 +0530)
committerAnjali Nijhara <a.nijhara@samsung.com>
Tue, 25 Jul 2023 05:56:39 +0000 (11:26 +0530)
Coverity Issue - 1678363

Change-Id: Ic4fc99bbc4f174261bfc6cb63ff8951ce0f802c9

plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c

index 1adbfff..16b706e 100644 (file)
@@ -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;
 }