mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 09:39:25 +01:00
hwsim: Fix l_genl_family_register return value check
This commit is contained in:
parent
c64d4f7dcf
commit
070f93fdf8
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user