mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 11:50:14 +01:00
libnm: fix empty statements that were supposed to return NULL
Discovered thanks to `-Wunused-value` when building on openSUSE Leap 42.3.
(cherry picked from commit c4f655579c)
This commit is contained in:
parent
7ea865ef49
commit
a30b2fcd84
1 changed files with 3 additions and 3 deletions
|
|
@ -1408,7 +1408,7 @@ nm_client_get_connection_by_id (NMClient *client, const char *id)
|
|||
g_return_val_if_fail (id != NULL, NULL);
|
||||
|
||||
if (!nm_client_get_nm_running (client))
|
||||
NULL;
|
||||
return NULL;
|
||||
|
||||
return nm_remote_settings_get_connection_by_id (NM_CLIENT_GET_PRIVATE (client)->settings, id);
|
||||
}
|
||||
|
|
@ -1433,7 +1433,7 @@ nm_client_get_connection_by_path (NMClient *client, const char *path)
|
|||
g_return_val_if_fail (path != NULL, NULL);
|
||||
|
||||
if (!nm_client_get_nm_running (client))
|
||||
NULL;
|
||||
return NULL;
|
||||
|
||||
return nm_remote_settings_get_connection_by_path (NM_CLIENT_GET_PRIVATE (client)->settings, path);
|
||||
}
|
||||
|
|
@ -1458,7 +1458,7 @@ nm_client_get_connection_by_uuid (NMClient *client, const char *uuid)
|
|||
g_return_val_if_fail (uuid != NULL, NULL);
|
||||
|
||||
if (!nm_client_get_nm_running (client))
|
||||
NULL;
|
||||
return NULL;
|
||||
|
||||
return nm_remote_settings_get_connection_by_uuid (NM_CLIENT_GET_PRIVATE (client)->settings, uuid);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue