On Mon, May 27, 2019 at 03:37:14PM -0300, Fabio Estevam wrote:
> The 'clips' member is a pointer, so assign NULL instead of 0.
> 
> This fixes the following sparse warning:
> 
> drivers/gpu/drm/drm_damage_helper.c:289:31: warning: Using plain integer as 
> NULL pointer
> 
> Signed-off-by: Fabio Estevam <feste...@gmail.com>

Applied, thanks for your patch.
-Daniel

> ---
>  drivers/gpu/drm/drm_damage_helper.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/drm_damage_helper.c 
> b/drivers/gpu/drm/drm_damage_helper.c
> index ee67c96841fa..8230dac01a89 100644
> --- a/drivers/gpu/drm/drm_damage_helper.c
> +++ b/drivers/gpu/drm/drm_damage_helper.c
> @@ -286,7 +286,7 @@ drm_atomic_helper_damage_iter_init(struct 
> drm_atomic_helper_damage_iter *iter,
>       iter->plane_src.y2 = (state->src.y2 >> 16) + !!(state->src.y2 & 0xFFFF);
>  
>       if (!iter->clips || !drm_rect_equals(&state->src, &old_state->src)) {
> -             iter->clips = 0;
> +             iter->clips = NULL;
>               iter->num_clips = 0;
>               iter->full_update = true;
>       }
> -- 
> 2.17.1
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to