mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 06:00:08 +01:00
libnm-core: drop unnecessary cast from _nm_connection_ensure_setting()
This commit is contained in:
parent
650922eeaa
commit
8ed17ded7b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue