dbus: Do not dereference wpa_s if explicitly checking it is not NULL
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 10 Nov 2009 16:20:12 +0000 (18:20 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 10 Nov 2009 16:20:12 +0000 (18:20 +0200)
commitd69780dcbb049ff00e5a33e974ab7e2025e5a571
tree0ad8b2fd0ff9a3926b5ab775f532d8f664c43a48
parent0cf7d7450a734f20edf6d3589701f4afd1a2f851
dbus: Do not dereference wpa_s if explicitly checking it is not NULL

There is no point checking whether wpa_s is not NULL after having
dereferenced it earlier in the function.. Furthermore, there is no
need to use a local variable for wpas_dbus_get_path() result.
wpa_supplicant/ctrl_iface_dbus_new.c