summaryrefslogtreecommitdiffstats
path: root/src/freedreno
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-06-28 06:27:17 -0700
committerRob Clark <[email protected]>2019-06-28 13:02:59 -0700
commit9753d7381c217ab989fd4589d43c30463394669f (patch)
tree8052cafe4760a0feb9758f13c6d8953865feae57 /src/freedreno
parent016a9ab2f93f9b6efb28c6bd168e96f5c9feb080 (diff)
freedreno/ir3: small cleanup
`target` cannot be NULL here. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/freedreno')
-rw-r--r--src/freedreno/ir3/ir3_legalize.c2
1 files changed, 1 insertions, 1 deletions
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 {