mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-11 18:50:36 +01:00
ifnet: fix error handling
CID 76722 (#1 of 1): Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this statement:
g_set_error(error, nm_setti....
(cherry picked from commit 2e563d9c84)
This commit is contained in:
parent
62e7bd6b12
commit
544827a8d1
1 changed files with 4 additions and 7 deletions
|
|
@ -1541,15 +1541,12 @@ make_wireless_security_setting (const char *conn_name,
|
|||
if (wsec == NULL)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (!wsec) {
|
||||
g_set_error (error, NM_SETTINGS_ERROR, NM_SETTINGS_ERROR_INVALID_CONNECTION,
|
||||
"Can't handle security information for ssid: %s",
|
||||
conn_name);
|
||||
}
|
||||
|
||||
return wsec;
|
||||
|
||||
error:
|
||||
g_set_error (error, NM_SETTINGS_ERROR, NM_SETTINGS_ERROR_INVALID_CONNECTION,
|
||||
"Can't handle security information for ssid: %s",
|
||||
conn_name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue