st/mesa: use correct return statement for a void function
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 26 Jan 2017 13:18:40 +0000 (13:18 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 27 Jan 2017 17:56:56 +0000 (17:56 +0000)
Analogous to previous commit.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_atifs_to_tgsi.c

index b28c55ceff9ab0f7012fce99e185109ae7b25acf..9c4218e67239da208b7f022b27fe740c54049aa4 100644 (file)
@@ -245,7 +245,8 @@ emit_arith_inst(struct st_translate *t,
                 struct ureg_dst *dst, struct ureg_src *args, unsigned argcount)
 {
    if (desc->TGSI_opcode == TGSI_OPCODE_NOP) {
-      return emit_special_inst(t, desc, dst, args, argcount);
+      emit_special_inst(t, desc, dst, args, argcount);
+      return;
    }
 
    ureg_insn(t->ureg, desc->TGSI_opcode, dst, 1, args, argcount);