X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=opcodes%2Ftic4x-dis.c;fp=opcodes%2Ftic4x-dis.c;h=34e270b71387ff53fa7139e04c9ae59f3fc37598;hb=b4a983cb93fa80d1653194e0a58231327c7d8cd3;hp=1d7946918b706418cd392eaa6804139cf6b3c2d1;hpb=21af24c8371a3e040f6f548ddfafb20114442c28;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/tic4x-dis.c b/opcodes/tic4x-dis.c index 1d7946918b..34e270b713 100644 --- a/opcodes/tic4x-dis.c +++ b/opcodes/tic4x-dis.c @@ -148,8 +148,7 @@ tic4x_print_register (struct disassemble_info *info, unsigned long regno) = (tic4x_register_t *)(tic4x_registers + i); } } - if (regno > (IS_CPU_TIC4X (tic4x_version) ? TIC4X_REG_MAX : TIC3X_REG_MAX) - || registertable[regno] == NULL) + if (regno > (IS_CPU_TIC4X (tic4x_version) ? TIC4X_REG_MAX : TIC3X_REG_MAX)) return 0; if (info != NULL) (*info->fprintf_func) (info->stream, "%s", registertable[regno]->name);