mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 03:48:09 +02:00
ifupdown: remove redundant error check
The presence of a parameter is checked above. CID 59899 (#1 of 1): Logically dead code (DEADCODE)
This commit is contained in:
parent
1a24f528c8
commit
cb8e70546b
1 changed files with 0 additions and 9 deletions
|
|
@ -232,15 +232,6 @@ _recursive_ifparser (const char *eni_file, int quiet)
|
||||||
char *en_dir;
|
char *en_dir;
|
||||||
|
|
||||||
skip_to_block = 0;
|
skip_to_block = 0;
|
||||||
|
|
||||||
if (toknum == 1) {
|
|
||||||
if (!quiet) {
|
|
||||||
nm_log_warn (LOGD_SETTINGS, "Invalid %s line without parameters\n",
|
|
||||||
token[0]);
|
|
||||||
}
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
en_dir = g_path_get_dirname (eni_file);
|
en_dir = g_path_get_dirname (eni_file);
|
||||||
for (i = 1; i < toknum; ++i) {
|
for (i = 1; i < toknum; ++i) {
|
||||||
if (strcmp (token[0], "source-directory") == 0)
|
if (strcmp (token[0], "source-directory") == 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue