public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] Remove break after return
@ 2019-03-28 10:50 Petr Vorel
  2019-03-28 10:59 ` Enji Cooper
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Petr Vorel @ 2019-03-28 10:50 UTC (permalink / raw)
  To: ltp

Reported-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/kernel/syscalls/select/select_var.h       | 1 -
 testcases/kernel/syscalls/sigpending/sigpending02.c | 3 ---
 2 files changed, 4 deletions(-)

diff --git a/testcases/kernel/syscalls/select/select_var.h b/testcases/kernel/syscalls/select/select_var.h
index b19a1d1bf..29ebbc5ee 100644
--- a/testcases/kernel/syscalls/select/select_var.h
+++ b/testcases/kernel/syscalls/select/select_var.h
@@ -20,7 +20,6 @@ static int do_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *except
 	switch (tst_variant) {
 	case 0:
 		return select(nfds, readfds, writefds, exceptfds, timeout);
-	break;
 	case 1: {
 #ifdef __LP64__
 		return tst_syscall(__NR_select, nfds, readfds, writefds, exceptfds, timeout);
diff --git a/testcases/kernel/syscalls/sigpending/sigpending02.c b/testcases/kernel/syscalls/sigpending/sigpending02.c
index ce0d2ff79..d75807d77 100644
--- a/testcases/kernel/syscalls/sigpending/sigpending02.c
+++ b/testcases/kernel/syscalls/sigpending/sigpending02.c
@@ -37,13 +37,10 @@ static int tested_sigpending(sigset_t *sigset)
 	switch (tst_variant) {
 	case 0:
 		return sigpending(sigset);
-	break;
 	case 1:
 		return tst_syscall(__NR_sigpending, sigset);
-	break;
 	case 2:
 		return tst_syscall(__NR_rt_sigpending, sigset, SIGSETSIZE);
-	break;
 	}
 	return -1;
 }
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-04-05  6:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-28 10:50 [LTP] [PATCH 1/1] Remove break after return Petr Vorel
2019-03-28 10:59 ` Enji Cooper
2019-03-29  3:04 ` Xiao Yang
2019-04-03 12:02   ` Cyril Hrubis
2019-04-03 12:06     ` Petr Vorel
2019-04-04  1:29       ` Xiao Yang
2019-04-05  6:48       ` Petr Vorel
2019-04-05  3:22 ` Xiao Yang
2019-04-05  6:56   ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox