From c8c4ef7d4404b94483c68b7479eb98b9b09f996c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 10 Mar 2011 11:02:29 -0500 Subject: [PATCH] remove useless return value checks for functions that cannot fail --- src/signal/sigpause.c | 5 ++--- 1 file 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); }