From 9753d7381c217ab989fd4589d43c30463394669f Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Fri, 28 Jun 2019 06:27:17 -0700 Subject: [PATCH] freedreno/ir3: small cleanup `target` cannot be NULL here. Signed-off-by: Rob Clark --- src/freedreno/ir3/ir3_legalize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3_legalize.c b/src/freedreno/ir3/ir3_legalize.c index e1ca1ada2c5..ae5547b6a52 100644 --- a/src/freedreno/ir3/ir3_legalize.c +++ b/src/freedreno/ir3/ir3_legalize.c @@ -430,7 +430,7 @@ resolve_jump(struct ir3_instruction *instr) else next_block = 1; - if ((!target) || (target->ip == (instr->ip + next_block))) { + if (target->ip == (instr->ip + next_block)) { list_delinit(&instr->node); return true; } else { -- 2.30.2