summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-02-22 20:52:31 +0000
committerMike Frysinger <vapier@gentoo.org>2011-02-22 20:52:31 +0000
commitd375829c21c67371a41eb63aefefd74354a4c909 (patch)
tree1436af62768538369195d24160a69c00d48dc7c0
parent4d2cb079aa6b5a6db9a837ffd9757047c558baa2 (diff)
downloadbinutils-redhat-d375829c21c67371a41eb63aefefd74354a4c909.tar.gz
opcodes: blackfin: drop null/nul checks in OUTS
Parts of the disassembler rely on the disasm info never being NULL (such as being able to read memory to disassemble in the first place). So drop useless null checks in the OUTS helper. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/bfin-dis.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index c7d3cdf450..eb7fed9f4a 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,5 +1,9 @@
2011-02-22 Mike Frysinger <vapier@gentoo.org>
+ * bfin-dis.c (OUTS): Remove p NULL check and txt NUL check.
+
+2011-02-22 Mike Frysinger <vapier@gentoo.org>
+
* bfin-dis.c (print_insn_bfin): Change outf->fprintf_func to OUTS.
2011-02-19 Mike Frysinger <vapier@gentoo.org>
diff --git a/opcodes/bfin-dis.c b/opcodes/bfin-dis.c
index 9b834a4130..2357a2a45d 100644
--- a/opcodes/bfin-dis.c
+++ b/opcodes/bfin-dis.c
@@ -490,7 +490,7 @@ static const enum machine_registers decode_allregs[] =
/* (arch.pm)arch_disassembler_functions. */
#ifndef OUTS
-#define OUTS(p, txt) ((p) ? (((txt)[0]) ? (p->fprintf_func)(p->stream, "%s", txt) :0) :0)
+#define OUTS(p, txt) (p)->fprintf_func ((p)->stream, "%s", txt)
#endif
static void