Drop logically dead code, found by Coverity Scan

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2023-03-04 12:09:50 +01:00
1 parent e75c1792aa
commit b65773d508
1 file changed
+1 -1
+1 -1
View File
@@ -798,7 +798,7 @@ char *runlevel_arr(int levels)
for (int i = 0; i < 10; i++) {
if (ISSET(levels, i)) {
if (i == 0)
p += snprintf(&lvl[p], sizeof(lvl) - p, "%s\"S\"", s ? ", " : "");
p += snprintf(&lvl[p], sizeof(lvl) - p, "\"S\"");
else
p += snprintf(&lvl[p], sizeof(lvl) - p, "%s%c", s ? ", " : "", '0' + i);
s++;