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:
Lubomir Rintel 2017-01-16 15:33:40 +01:00
parent 1a24f528c8
commit cb8e70546b

View file

@ -232,15 +232,6 @@ _recursive_ifparser (const char *eni_file, int quiet)
char *en_dir;
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);
for (i = 1; i < toknum; ++i) {
if (strcmp (token[0], "source-directory") == 0)