libnm-core: drop unnecessary cast from _nm_connection_ensure_setting()

This commit is contained in:
Thomas Haller 2021-08-20 19:03:39 +02:00
parent 650922eeaa
commit 8ed17ded7b
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -365,7 +365,7 @@ _nm_connection_ensure_setting(NMConnection *connection, GType gtype)
{
NMSetting *setting;
setting = (gpointer) nm_connection_get_setting(connection, gtype);
setting = nm_connection_get_setting(connection, gtype);
if (!setting) {
setting = g_object_new(gtype, NULL);
nm_connection_add_setting(connection, setting);