libnm: use nm_utils_strv_find_binary_search() in valid_s390_opts_check()

This commit is contained in:
Thomas Haller 2021-03-15 14:41:24 +01:00
parent b9d73cfb2d
commit dccfe1df34
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -129,12 +129,9 @@ valid_s390_opts_check(const char *option)
}
return option
&& (nm_utils_array_find_binary_search(valid_s390_opts,
sizeof(const char *),
G_N_ELEMENTS(valid_s390_opts) - 1,
&option,
nm_strcmp_p_with_data,
NULL)
&& (nm_utils_strv_find_binary_search(valid_s390_opts,
G_N_ELEMENTS(valid_s390_opts) - 1,
option)
>= 0);
}