summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dmi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dmi.c b/dmi.c
index 79321ce20..c32a8da1a 100644
--- a/dmi.c
+++ b/dmi.c
@@ -320,9 +320,8 @@ static char *get_dmi_string(const char *string_name)
msg_perr("DMI pipe read error\n");
pclose(dmidecode_pipe);
return NULL;
- } else {
- answerbuf[0] = 0; /* Hit EOF */
}
+ answerbuf[0] = 0; /* Hit EOF */
}
} while (answerbuf[0] == '#');