projects
/
platform
/
core
/
connectivity
/
wifi-direct-manager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix logical dead code issue
[platform/core/connectivity/wifi-direct-manager.git]
/
plugin
/
wpasupplicant
/
ctrl_iface_dbus
/
wfd-plugin-wpasupplicant.c
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
(file)
--- 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;
}