[Mesa-dev] [PATCH 1/6] mesa: Drop unused return value from use_shader_program
Paul Berry
stereotype441 at gmail.com
Tue Oct 29 18:27:29 CET 2013
On 27 October 2013 14:59, Ian Romanick <idr at freedesktop.org> wrote:
> From: Gregory Hainaut <gregory.hainaut at gmail.com>
>
> The return value has been unused since commit d348b0c. This was
> originally included in another patch, but it was split out by Ian
> Romanick.
>
> Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
> Cc: Eric Anholt <eric at anholt.net>
> ---
> src/mesa/main/shaderapi.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
> index f5c04b9..18b4f55 100644
> --- a/src/mesa/main/shaderapi.c
> +++ b/src/mesa/main/shaderapi.c
> @@ -926,7 +926,7 @@ _mesa_active_program(struct gl_context *ctx, struct
> gl_shader_program *shProg,
>
> /**
> */
> -static bool
> +static void
> use_shader_program(struct gl_context *ctx, GLenum type,
> struct gl_shader_program *shProg)
> {
> @@ -955,7 +955,7 @@ use_shader_program(struct gl_context *ctx, GLenum type,
> }
> break;
> default:
> - return false;
> + return;
> }
>
> if (*target != shProg) {
> @@ -982,10 +982,10 @@ use_shader_program(struct gl_context *ctx, GLenum
> type,
> }
>
> _mesa_reference_shader_program(ctx, target, shProg);
> - return true;
> + return;
> }
>
> - return false;
> + return;
>
Personally, I'd just drop this final "return", since it's the end of the
function.
Either way, the patch is:
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
> }
>
> /**
> --
> 1.8.1.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131029/d3578f1f/attachment.html>
More information about the mesa-dev
mailing list