diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-03-03 15:50:28 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-03-07 14:33:51 +0000 |
commit | 6815a8a00a8f3fd380fb5f87b934694c78d20ec4 (patch) | |
tree | ff0d81379d93a8dfc8c5679c34c805274d91c291 /disas/hppa.c | |
parent | ff79d5e939c38677a575e3493eb9b4d36eb21865 (diff) |
disas/hppa: Remove dead code
Coverity complains (CID 1302705) that the "fr0" part of the ?: in
fput_fp_reg_r() is dead. This looks like cut-n-paste error from
fput_fp_reg(); delete the dead code.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 1488556233-31246-2-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'disas/hppa.c')
-rw-r--r-- | disas/hppa.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/disas/hppa.c b/disas/hppa.c index 43facdc47b..a2d371fdb1 100644 --- a/disas/hppa.c +++ b/disas/hppa.c @@ -1788,8 +1788,7 @@ fput_fp_reg_r (unsigned reg, disassemble_info *info) if (reg < 4) (*info->fprintf_func) (info->stream, "fpe%d", reg * 2 + 1); else - (*info->fprintf_func) (info->stream, "%sR", - reg ? fp_reg_names[reg] : "fr0"); + (*info->fprintf_func) (info->stream, "%sR", fp_reg_names[reg]); } static void |