Skip to contentSkip to conversation

target/openrisc: Remove superfluous breaks

PATCH In review Yi Wang 2 participants 2 messages Jul 13, 2020

lore
Share & tools
lore

Yi Wang

author
#0 lore raw

PATCH 1/1 target/openrisc: Remove superfluous breaks

From: Liao Pingfang <[email protected]>

Remove superfluous breaks, as there is a "return" before them.

---
 target/openrisc/sys_helper.c | 2 --
 1 file changed, 2 deletions(-)
target/openrisc/sys_helper.c +0 -2
index d9fe6c5..d9691d0 100644
@@ -289,10 +289,8 @@ target_ulong HELPER(mfspr)(CPUOpenRISCState *env, target_ulong rd,
 
     case TO_SPR(5, 1):  /* MACLO */
         return (uint32_t)env->mac;
-        break;
     case TO_SPR(5, 2):  /* MACHI */
         return env->mac >> 32;
-        break;
 
     case TO_SPR(8, 0):  /* PMR */
         return env->pmr;
Signature · 1 line
2.9.5
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 5 lines · Yi Wang

From: Liao Pingfang <[email protected]>

Remove superfluous breaks, as there is a "return" before them.

This patch (and various other you posted recently) misses your S-o-b tag, see:
https://wiki.qemu.org/Contribute/SubmitAPatch#Patch_emails_must_include_a_Signed-off-by:_line

When reposting with your S-o-b please amend:

Quoted 20 lines
---
 target/openrisc/sys_helper.c | 2 --
 1 file changed, 2 deletions(-)
target/openrisc/sys_helper.c +0 -2
index d9fe6c5..d9691d0 100644
@@ -289,10 +289,8 @@ target_ulong HELPER(mfspr)(CPUOpenRISCState *env, target_ulong rd,
 
     case TO_SPR(5, 1):  /* MACLO */
         return (uint32_t)env->mac;
-        break;
     case TO_SPR(5, 2):  /* MACHI */
         return env->mac >> 32;
-        break;
 
     case TO_SPR(8, 0):  /* PMR */
         return env->pmr;