qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 37/51] target-arm/gdbstub64.c: remove useless 'break'


From: Peter Maydell
Subject: [Qemu-devel] [PULL 37/51] target-arm/gdbstub64.c: remove useless 'break' statement.
Date: Thu, 17 Apr 2014 11:33:52 +0100

From: Chen Gang <address@hidden>

Clean up useless 'break' statement after 'return' statement.

Signed-off-by: Chen Gang <address@hidden>
Reviewed-by: Peter Crosthwaite <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>
---
 target-arm/gdbstub64.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/target-arm/gdbstub64.c b/target-arm/gdbstub64.c
index e8a8295..8f3b8d1 100644
--- a/target-arm/gdbstub64.c
+++ b/target-arm/gdbstub64.c
@@ -32,10 +32,8 @@ int aarch64_cpu_gdb_read_register(CPUState *cs, uint8_t 
*mem_buf, int n)
     switch (n) {
     case 31:
         return gdb_get_reg64(mem_buf, env->xregs[31]);
-        break;
     case 32:
         return gdb_get_reg64(mem_buf, env->pc);
-        break;
     case 33:
         return gdb_get_reg32(mem_buf, pstate_read(env));
     }
-- 
1.9.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]