diff mbox

target/xtensa: gdbstub: drop dead return statement

Message ID 1496864204-5954-1-git-send-email-jcmvbkbc@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Max Filippov June 7, 2017, 7:36 p.m. UTC
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
 target/xtensa/gdbstub.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Laurent Vivier June 8, 2017, 11:48 a.m. UTC | #1
On 07/06/2017 21:36, Max Filippov wrote:
> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
> ---
>  target/xtensa/gdbstub.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/target/xtensa/gdbstub.c b/target/xtensa/gdbstub.c
> index da131ae..d78a1b4 100644
> --- a/target/xtensa/gdbstub.c
> +++ b/target/xtensa/gdbstub.c
> @@ -72,7 +72,6 @@ int xtensa_cpu_gdb_read_register(CPUState *cs, uint8_t *mem_buf, int n)
>                        __func__, n, reg->type);
>          memset(mem_buf, 0, reg->size);
>          return reg->size;
> -        return 0;
>      }
>  }
>  
> 
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
diff mbox

Patch

diff --git a/target/xtensa/gdbstub.c b/target/xtensa/gdbstub.c
index da131ae..d78a1b4 100644
--- a/target/xtensa/gdbstub.c
+++ b/target/xtensa/gdbstub.c
@@ -72,7 +72,6 @@  int xtensa_cpu_gdb_read_register(CPUState *cs, uint8_t *mem_buf, int n)
                       __func__, n, reg->type);
         memset(mem_buf, 0, reg->size);
         return reg->size;
-        return 0;
     }
 }