From: Rob Clark Date: Mon, 29 Jan 2018 20:35:12 +0000 (-0500) Subject: freedreno/ir3: remove pointless statement X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98702c1010a16fe78e2c4e39e005309cc2b12157;p=mesa.git freedreno/ir3: remove pointless statement Function ends after this if/else ladder, so it was pointless. Signed-off-by: Rob Clark --- 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)) {