3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +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,
NULL, NULL);
if (ret < 0) {
if (!ret) {
fprintf(stderr, "Failed to create hwsim config listener\n");
exit_status = EXIT_FAILURE;
l_main_quit();