projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
619e672
)
Remove unnecessary wpa_s == NULL validation
author
Jouni Malinen
<j@w1.fi>
Sun, 16 Oct 2011 10:16:21 +0000
(13:16 +0300)
committer
Jouni Malinen
<j@w1.fi>
Sun, 16 Oct 2011 10:16:21 +0000
(13:16 +0300)
wpa_s cannot be NULL here (it is already dereferenced above and
all the callers pass a valid pointer anyway).
wpa_supplicant/dbus/dbus_new.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/dbus/dbus_new.c
b/wpa_supplicant/dbus/dbus_new.c
index
39cf401
..
9bb5faf
100644
(file)
--- a/
wpa_supplicant/dbus/dbus_new.c
+++ b/
wpa_supplicant/dbus/dbus_new.c
@@
-1894,8
+1894,7
@@
int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s, int nid)
#endif /* CONFIG_P2P */
/* Do nothing if the control interface is not turned on */
- if (wpa_s == NULL || wpa_s->global == NULL ||
- wpa_s->dbus_new_path == NULL)
+ if (wpa_s->global == NULL || wpa_s->dbus_new_path == NULL)
return 0;
ctrl_iface = wpa_s->global->dbus;
if (ctrl_iface == NULL)