mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 11:19:16 +02: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;
|
NMSetting *setting;
|
||||||
|
|
||||||
setting = (gpointer) nm_connection_get_setting(connection, gtype);
|
setting = nm_connection_get_setting(connection, gtype);
|
||||||
if (!setting) {
|
if (!setting) {
|
||||||
setting = g_object_new(gtype, NULL);
|
setting = g_object_new(gtype, NULL);
|
||||||
nm_connection_add_setting(connection, setting);
|
nm_connection_add_setting(connection, setting);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue