[igt-dev] [PATCH 3/7] drm/leases: Don't init to 0 in drm_master_create

Boris Brezillon boris.brezillon at collabora.com
Thu Mar 14 07:56:04 UTC 2019


On Thu, 28 Feb 2019 15:49:06 +0100
Daniel Vetter <daniel.vetter at ffwll.ch> wrote:

> We kzalloc.
> 
> Cc: Keith Packard <keithp at keithp.com>
> Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>

Reviewed-by: Boris Brezillon <boris.brezillon at collabora.com>

> ---
>  drivers/gpu/drm/drm_auth.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_auth.c b/drivers/gpu/drm/drm_auth.c
> index 1669c42c40ed..bcf0a5a1018f 100644
> --- a/drivers/gpu/drm/drm_auth.c
> +++ b/drivers/gpu/drm/drm_auth.c
> @@ -109,8 +109,6 @@ struct drm_master *drm_master_create(struct drm_device *dev)
>  	master->dev = dev;
>  
>  	/* initialize the tree of output resource lessees */
> -	master->lessor = NULL;
> -	master->lessee_id = 0;
>  	INIT_LIST_HEAD(&master->lessees);
>  	INIT_LIST_HEAD(&master->lessee_list);
>  	idr_init(&master->leases);



More information about the igt-dev mailing list