[Mesa-dev] [PATCH 10/28] st/va: move variable declaration to where its used

Nayan Deshmukh nayan26deshmukh at gmail.com
Tue Dec 13 17:43:30 UTC 2016


s/thinker/tinker.

with that fixed Reviewed-by: Nayan Deshmukh <nayan26deshmukh at gmail.com>

On Fri, Dec 9, 2016 at 12:51 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> From: Emil Velikov <emil.velikov at collabora.com>
>
> ... and make it const, since we shouldn't thinker with it.
>
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
>  src/gallium/state_trackers/va/context.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c
> index 65ba7db..abc8b39 100644
> --- a/src/gallium/state_trackers/va/context.c
> +++ b/src/gallium/state_trackers/va/context.c
> @@ -103,7 +103,6 @@ PUBLIC VAStatus
>  VA_DRIVER_INIT_FUNC(VADriverContextP ctx)
>  {
>     vlVaDriver *drv;
> -   struct drm_state *drm_info;
>
>     if (!ctx)
>        return VA_STATUS_ERROR_INVALID_CONTEXT;
> @@ -129,7 +128,7 @@ VA_DRIVER_INIT_FUNC(VADriverContextP ctx)
>     case VA_DISPLAY_WAYLAND:
>     case VA_DISPLAY_DRM:
>     case VA_DISPLAY_DRM_RENDERNODES: {
> -      drm_info = (struct drm_state *) ctx->drm_state;
> +      const struct drm_state *drm_info = (struct drm_state *) ctx->drm_state;
>
>        if (!drm_info || drm_info->fd < 0) {
>           FREE(drv);
> --
> 2.10.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list