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:
Lubomir Rintel 2016-04-28 17:39:05 +02:00
parent dc9bba9e51
commit 2e563d9c84

View file

@ -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;
}