From 500cccad3b263c129be66c560cb9b85105bd8c3d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 22 Feb 2011 20:52:31 +0000 Subject: 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 --- opcodes/bfin-dis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opcodes/bfin-dis.c') diff --git a/opcodes/bfin-dis.c b/opcodes/bfin-dis.c index 9b834a4..2357a2a 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 -- cgit v1.1