[Mesa-dev] [PATCH 5/8] st/mesa: use correct return statement for a void function

Marek Olšák maraeo at gmail.com
Thu Jan 26 17:51:44 UTC 2017


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

On Jan 26, 2017 2:21 PM, "Emil Velikov" <emil.l.velikov at gmail.com> wrote:

> From: Emil Velikov <emil.velikov at collabora.com>
>
> Analogous to previous commit.
>
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
>  src/mesa/state_tracker/st_atifs_to_tgsi.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_atifs_to_tgsi.c
> b/src/mesa/state_tracker/st_atifs_to_tgsi.c
> index b28c55ceff..9c4218e672 100644
> --- a/src/mesa/state_tracker/st_atifs_to_tgsi.c
> +++ b/src/mesa/state_tracker/st_atifs_to_tgsi.c
> @@ -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);
> --
> 2.11.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170126/49b5c18d/attachment.html>


More information about the mesa-dev mailing list