diff mbox series

[15/16] rt-tests: ssdd.c: Remove unncessary "else"

Message ID 20201029174057.20033-16-jkacur@redhat.com
State New
Headers show
Series [01/16] rt-tests: remove pi_tests.spec | expand

Commit Message

John Kacur Oct. 29, 2020, 5:40 p.m. UTC
remove unnecessary "else" and also fix function header.

Signed-off-by: John Kacur <jkacur@redhat.com>
---
 src/ssdd/ssdd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/src/ssdd/ssdd.c b/src/ssdd/ssdd.c
index 66d6009dc572..9fa61f39f6e3 100644
--- a/src/ssdd/ssdd.c
+++ b/src/ssdd/ssdd.c
@@ -147,7 +147,7 @@  static pid_t parent;
 static int nforks = 10;
 static int nsteps = 10000;
 
-static void sigchld(int sig, unused siginfo_t * info, unused void *arg)
+static void sigchld(int sig, unused siginfo_t *info, unused void *arg)
 {
 	got_sigchld = 1;
 }
@@ -218,7 +218,7 @@  static int forktests(int testid)
 		       ret_sig);
 		exit(1);
 	}
-	else if (!check_sigchld()) {
+	if (!check_sigchld()) {
 		printf("forktest#%d/%d: EXITING, ERROR: "
 		       "wait on PTRACE_ATTACH saw a SIGCHLD count of %d, should be 1\n",
 		       testid, getpid(), got_sigchld);