freedreno/ir3: small cleanup
authorRob Clark <robdclark@chromium.org>
Fri, 28 Jun 2019 13:27:17 +0000 (06:27 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 28 Jun 2019 20:02:59 +0000 (13:02 -0700)
`target` cannot be NULL here.

Signed-off-by: Rob Clark <robdclark@chromium.org>
src/freedreno/ir3/ir3_legalize.c

index e1ca1ada2c53a218f9baee991a109b06aa3e8826..ae5547b6a527ebfd29c99a5b886ceab7894a591d 100644 (file)
@@ -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 {