freedreno/a2xx: remove duplicate assignment
authorEric Engestrom <eric@engestrom.ch>
Sat, 30 Jul 2016 00:23:09 +0000 (01:23 +0100)
committerRob Clark <robdclark@gmail.com>
Sat, 30 Jul 2016 13:23:42 +0000 (09:23 -0400)
CovID: 13624451362446
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a2xx/ir-a2xx.h

index 822e5ec4c233ac730613cf10d271b405ab198a22..36ed2043b2f8bfe11817c4823ab7de377d4bcb70 100644 (file)
@@ -158,7 +158,7 @@ static inline struct ir2_instruction *
 ir2_instr_create_vtx_fetch(struct ir2_cf *cf, int ci, int cis,
                enum a2xx_sq_surfaceformat fmt, bool is_signed, int stride)
 {
-       struct ir2_instruction *instr = instr = ir2_instr_create(cf, IR2_FETCH);
+       struct ir2_instruction *instr = ir2_instr_create(cf, IR2_FETCH);
        instr->fetch.opc = VTX_FETCH;
        instr->fetch.const_idx = ci;
        instr->fetch.const_idx_sel = cis;
@@ -170,7 +170,7 @@ ir2_instr_create_vtx_fetch(struct ir2_cf *cf, int ci, int cis,
 static inline struct ir2_instruction *
 ir2_instr_create_tex_fetch(struct ir2_cf *cf, int ci)
 {
-       struct ir2_instruction *instr = instr = ir2_instr_create(cf, IR2_FETCH);
+       struct ir2_instruction *instr = ir2_instr_create(cf, IR2_FETCH);
        instr->fetch.opc = TEX_FETCH;
        instr->fetch.const_idx = ci;
        return instr;