Module: Mesa
Branch: master
Commit: 9753d7381c217ab989fd4589d43c30463394669f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9753d7381c217ab989fd4589d43c30463394669f

Author: Rob Clark <[email protected]>
Date:   Fri Jun 28 06:27:17 2019 -0700

freedreno/ir3: small cleanup

`target` cannot be NULL here.

Signed-off-by: Rob Clark <[email protected]>

---

 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 {

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to