From 070f93fdf8f194f9cee7a38442d69d22f311b1c4 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Wed, 22 Feb 2017 04:04:50 +0100 Subject: [PATCH] hwsim: Fix l_genl_family_register return value check --- tools/hwsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hwsim.c b/tools/hwsim.c index a434e94a..1283bc61 100644 --- a/tools/hwsim.c +++ b/tools/hwsim.c @@ -257,7 +257,7 @@ static void hwsim_ready(void *user_data) ret = l_genl_family_register(hwsim, "config", hwsim_config, NULL, NULL); - if (ret < 0) { + if (!ret) { fprintf(stderr, "Failed to create hwsim config listener\n"); exit_status = EXIT_FAILURE; l_main_quit();