mirror of
git://git.musl-libc.org/musl
synced 2024-12-14 18:55:23 +00:00
remove useless return value checks for functions that cannot fail
This commit is contained in:
parent
0f8cc94d68
commit
c8c4ef7d44
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user