]> granicus.if.org Git - strace/commitdiff
Remove unnecessary "return 0" statements
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 15 Feb 2013 10:43:08 +0000 (11:43 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 15 Feb 2013 10:43:08 +0000 (11:43 +0100)
* util.c (change_syscall): Remove dummy "return 0"s.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util.c

diff --git a/util.c b/util.c
index 55ff90d00876607ff405565e5e29ed7c53c16c93..72873da59616ab19114b7b78fee7d9fa085f75a6 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1205,7 +1205,6 @@ change_syscall(struct tcb *tcp, arg_setup_state *state, int new)
 #elif defined(X32)
        /* setbpt/clearbpt never used: */
        /* X32 is only supported since about linux-3.0.30 */
-       return 0;
 #elif defined(POWERPC)
        if (ptrace(PTRACE_POKEUSER, tcp->pid,
                   (char*)(sizeof(unsigned long)*PT_R0), new) < 0)
@@ -1234,11 +1233,9 @@ change_syscall(struct tcb *tcp, arg_setup_state *state, int new)
 #elif defined(AVR32)
        /* setbpt/clearbpt never used: */
        /* AVR32 is only supported since about linux-2.6.19 */
-       return 0;
 #elif defined(BFIN)
        /* setbpt/clearbpt never used: */
        /* Blackfin is only supported since about linux-2.6.23 */
-       return 0;
 #elif defined(IA64)
        if (ia32) {
                switch (new) {
@@ -1287,15 +1284,12 @@ change_syscall(struct tcb *tcp, arg_setup_state *state, int new)
 #elif defined(AARCH64)
        /* setbpt/clearbpt never used: */
        /* AARCH64 is only supported since about linux-3.0.31 */
-       return 0;
 #elif defined(TILE)
        /* setbpt/clearbpt never used: */
        /* Tilera CPUs are only supported since about linux-2.6.34 */
-       return 0;
 #elif defined(MICROBLAZE)
        /* setbpt/clearbpt never used: */
        /* microblaze is only supported since about linux-2.6.30 */
-       return 0;
 #elif defined(OR1K)
        /* never reached; OR1K is only supported by kernels since 3.1.0. */
 #else