mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 11:20:07 +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....
This commit is contained in:
parent
dc9bba9e51
commit
2e563d9c84
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