remove useless return value checks for functions that cannot fail

This commit is contained in:
Rich Felker 2011-03-10 11:02:29 -05:00
parent 0f8cc94d68
commit c8c4ef7d44

View File

@ -4,8 +4,7 @@
int sigpause(int sig)
{
sigset_t mask;
if (sigprocmask(0, NULL, &mask) < 0 || sigdelset(&mask, sig) < 0)
return -1;
sigprocmask(0, 0, &mask);
sigdelset(&mask, sig);
return sigsuspend(&mask);
}