3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 05:39:24 +01:00

hwsim: Fix l_genl_family_register return value check

This commit is contained in:
Andrew Zaborowski 2017-02-22 04:04:50 +01:00 committed by Denis Kenzior
parent c64d4f7dcf
commit 070f93fdf8

View File

@ -257,7 +257,7 @@ static void hwsim_ready(void *user_data)
ret = l_genl_family_register(hwsim, "config", hwsim_config, ret = l_genl_family_register(hwsim, "config", hwsim_config,
NULL, NULL); NULL, NULL);
if (ret < 0) { if (!ret) {
fprintf(stderr, "Failed to create hwsim config listener\n"); fprintf(stderr, "Failed to create hwsim config listener\n");
exit_status = EXIT_FAILURE; exit_status = EXIT_FAILURE;
l_main_quit(); l_main_quit();