aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_cli.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-02-16 13:52:08 (GMT)
committerJouni Malinen <j@w1.fi>2016-02-16 13:52:08 (GMT)
commitddd0032e0320b78e34244f20e6fdf73d89bf00c8 (patch)
treeb085e52791120c53b3bad9de72a8921e4a9967f6 /wpa_supplicant/wpa_cli.c
parent24c382af7a7613dfe26e0c9e2c9d6a11ff6d07cc (diff)
downloadhostap-ddd0032e0320b78e34244f20e6fdf73d89bf00c8.zip
hostap-ddd0032e0320b78e34244f20e6fdf73d89bf00c8.tar.gz
hostap-ddd0032e0320b78e34244f20e6fdf73d89bf00c8.tar.bz2
wpa_cli: Clean up logical operation
While '!func() == 0' here resulted in correct behavior, it is not clear and clang is starting to warn about this (-Wlogical-not-parentheses). Use 'func()' instead as the condition to clear this. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wpa_cli.c')
-rw-r--r--wpa_supplicant/wpa_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index 2420602..498fbb9 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -4152,7 +4152,7 @@ static void try_connection(void *eloop_ctx, void *timeout_ctx)
if (ctrl_ifname == NULL)
ctrl_ifname = wpa_cli_get_default_ifname();
- if (!wpa_cli_open_connection(ctrl_ifname, 1) == 0) {
+ if (wpa_cli_open_connection(ctrl_ifname, 1)) {
if (!warning_displayed) {
printf("Could not connect to wpa_supplicant: "
"%s - re-trying\n",