aboutsummaryrefslogtreecommitdiff
path: root/target/xtensa/translate.c
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2018-03-23 15:32:02 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2018-05-20 08:48:13 +0300
commit4a4ff4c58fd750cde01c8b15d30d038cefc90a42 (patch)
tree663380d3786b808f7829236f2d085b437d4edb71 /target/xtensa/translate.c
parentf23c81073a4f9aa41a3687161f6ca3d66501a280 (diff)
downloadqemu-4a4ff4c58fd750cde01c8b15d30d038cefc90a42.zip
qemu-4a4ff4c58fd750cde01c8b15d30d038cefc90a42.tar.gz
qemu-4a4ff4c58fd750cde01c8b15d30d038cefc90a42.tar.bz2
Remove unnecessary variables for function return value
Re-run Coccinelle script scripts/coccinelle/return_directly.cocci Signed-off-by: Laurent Vivier <lvivier@redhat.com> ppc part Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'target/xtensa/translate.c')
-rw-r--r--target/xtensa/translate.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c
index ae0feb0..df0e7ba 100644
--- a/target/xtensa/translate.c
+++ b/target/xtensa/translate.c
@@ -1271,11 +1271,8 @@ XtensaOpcodeOps *
xtensa_find_opcode_ops(const XtensaOpcodeTranslators *t,
const char *name)
{
- XtensaOpcodeOps *ops;
-
- ops = bsearch(name, t->opcode, t->num_opcodes,
- sizeof(XtensaOpcodeOps), compare_opcode_ops);
- return ops;
+ return bsearch(name, t->opcode, t->num_opcodes,
+ sizeof(XtensaOpcodeOps), compare_opcode_ops);
}
static void translate_abs(DisasContext *dc, const uint32_t arg[],