Remove some dead code

Based on coverity report.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-03-31 14:28:36 -04:00
parent a7edaadd78
commit 4dd1de72e8
6 changed files with 7 additions and 22 deletions
+4 -8
View File
@@ -77,15 +77,11 @@ int utmp_get_runlevel(int *runlevel, int *previous) {
a = found->ut_pid & 0xFF;
b = (found->ut_pid >> 8) & 0xFF;
if (a < 0 || b < 0)
r = -EIO;
else {
*runlevel = a;
*runlevel = a;
if (previous)
*previous = b;
if (previous)
*previous = b;
r = 0;
}
r = 0;
}
endutxent();