mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-22 22:22:05 +03: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