From: Rich Felker Date: Thu, 10 Mar 2011 16:02:29 +0000 (-0500) Subject: remove useless return value checks for functions that cannot fail X-Git-Tag: v0.7.0~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c8c4ef7d4404b94483c68b7479eb98b9b09f996c;p=oweals%2Fmusl.git remove useless return value checks for functions that cannot fail --- 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); }