libnm-base: fix bogus and unnecessary cast in nm_ethtool_data_get_by_optname()

Fixes: df30651b89 ('libnm, cli, ifcfg-rh: add NMSettingEthtool setting')
(cherry picked from commit 373cbcb749)
This commit is contained in:
Thomas Haller 2022-12-05 22:48:22 +01:00
parent d78e87232d
commit 02665e022b
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -271,7 +271,7 @@ nm_ethtool_data_get_by_optname(const char *optname)
_ASSERT_data();
idx = nm_utils_array_find_binary_search((gconstpointer *) _by_name,
idx = nm_utils_array_find_binary_search(_by_name,
sizeof(_by_name[0]),
_NM_ETHTOOL_ID_NUM,
optname,