Don't 'else' after a 'noreturn' call

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alex Colomar 2022-09-28 00:03:46 +02:00 committed by Iker Pedrosa
parent 99ce21a313
commit 8cce4557e0

View File

@ -202,10 +202,9 @@ static void catch_signals (unused int sig)
execl (PATH_TELINIT, "telinit", RUNLEVEL, (char *) 0);
#endif
exit (0);
} else {
STRFCPY (pass, cp);
strzero (cp);
}
STRFCPY (pass, cp);
strzero (cp);
if (valid (pass, &pwent)) { /* check encrypted passwords ... */
break; /* ... encrypted passwords matched */
}