From a6f1f47478bb9682d896d2925ffe9e4e071f997a Mon Sep 17 00:00:00 2001 From: Anjali Nijhara Date: Tue, 25 Jul 2023 11:26:39 +0530 Subject: [PATCH] Fix logical dead code issue Coverity Issue - 1678363 Change-Id: Ic4fc99bbc4f174261bfc6cb63ff8951ce0f802c9 --- plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } -- 2.7.4