From: Rob Clark Date: Fri, 28 Jun 2019 13:27:17 +0000 (-0700) Subject: freedreno/ir3: small cleanup X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9753d7381c217ab989fd4589d43c30463394669f;p=mesa.git freedreno/ir3: small cleanup `target` cannot be NULL here. Signed-off-by: Rob Clark --- 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 {