From 98702c1010a16fe78e2c4e39e005309cc2b12157 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 29 Jan 2018 15:35:12 -0500 Subject: [PATCH] freedreno/ir3: remove pointless statement Function ends after this if/else ladder, so it was pointless. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/ir3/ir3_cp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/drivers/freedreno/ir3/ir3_cp.c b/src/gallium/drivers/freedreno/ir3/ir3_cp.c index 61b4b201215..6a48a7dcecc 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_cp.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_cp.c @@ -350,9 +350,6 @@ reg_cp(struct ir3_cp_ctx *ctx, struct ir3_instruction *instr, reg->instr = ssa(src_reg); } - src = ssa(reg); /* could be null for IR3_REG_ARRAY case */ - if (!src) - return; } else if (is_same_type_mov(src) && /* cannot collapse const/immed/etc into meta instrs: */ !is_meta(instr)) { -- 2.30.2