drm/leases: Don't init to 0 in drm_master_create
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 28 Feb 2019 14:49:06 +0000 (15:49 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Apr 2019 09:29:06 +0000 (11:29 +0200)
We kzalloc.

Cc: Keith Packard <keithp@keithp.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190228144910.26488-4-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_auth.c

index 1669c42..bcf0a5a 100644 (file)
@@ -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);