manager: fix UseDefaultInterface warning

This logic was incorrect here, we only want to print if the option
is used, not if its unset.
This commit is contained in:
James Prestwood 2024-09-20 09:36:14 -07:00 committed by Denis Kenzior
parent 14b9291490
commit a27b7823df
1 changed files with 3 additions and 3 deletions

View File

@ -894,11 +894,11 @@ static int manager_init(void)
}
if (!l_settings_get_bool(config, "General",
"UseDefaultInterface", &use_default)) {
"UseDefaultInterface", &use_default))
use_default = false;
else
l_warn("[General].UseDefaultInterface is deprecated, please "
"use [DriverQuirks].DefaultInterface instead");
use_default = false;
}
return 0;