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

Fixes: df30651b89 ('libnm, cli, ifcfg-rh: add NMSettingEthtool setting')
This commit is contained in:
Thomas Haller 2022-12-05 22:48:22 +01:00
parent 3f04778df2
commit 373cbcb749
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_array_find_bsearch((gconstpointer *) _by_name,
idx = nm_array_find_bsearch(_by_name,
_NM_ETHTOOL_ID_NUM,
sizeof(_by_name[0]),
optname,