summaryrefslogtreecommitdiff
path: root/opcodes/bfin-dis.c
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
commit500cccad3b263c129be66c560cb9b85105bd8c3d (patch)
tree3c8a4381c55f52bcea67878a9037c8a0a5dd60bc /opcodes/bfin-dis.c
parentf5caf9f43499f4b97f75c01351f9e55005636708 (diff)
downloadbinutils-gdb-500cccad3b263c129be66c560cb9b85105bd8c3d.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>
Diffstat (limited to 'opcodes/bfin-dis.c')
-rw-r--r--opcodes/bfin-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/bfin-dis.c b/opcodes/bfin-dis.c
index 9b834a41301..2357a2a45de 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