diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-03-10 11:02:29 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-03-10 11:02:29 -0500 |
commit | c8c4ef7d4404b94483c68b7479eb98b9b09f996c (patch) | |
tree | 4fb63703d35871a4c7b2b87872ef701d40a0ec02 /src/signal/sigpause.c | |
parent | 0f8cc94d68a54893fc2aee90503735045618d8ae (diff) | |
download | musl-c8c4ef7d4404b94483c68b7479eb98b9b09f996c.tar.gz musl-c8c4ef7d4404b94483c68b7479eb98b9b09f996c.tar.bz2 musl-c8c4ef7d4404b94483c68b7479eb98b9b09f996c.tar.xz musl-c8c4ef7d4404b94483c68b7479eb98b9b09f996c.zip |
remove useless return value checks for functions that cannot fail
Diffstat (limited to 'src/signal/sigpause.c')
-rw-r--r-- | src/signal/sigpause.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/signal/sigpause.c b/src/signal/sigpause.c index 263c00f5..6c0f05df 100644 --- a/src/signal/sigpause.c +++ b/src/signal/sigpause.c @@ -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); } |