drm/leases: Don't init to 0 in drm_master_create
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
This commit is contained in:
parent
ae9d6c076c
commit
4285c7e1aa
|
@ -109,8 +109,6 @@ struct drm_master *drm_master_create(struct drm_device *dev)
|
||||||
master->dev = dev;
|
master->dev = dev;
|
||||||
|
|
||||||
/* initialize the tree of output resource lessees */
|
/* initialize the tree of output resource lessees */
|
||||||
master->lessor = NULL;
|
|
||||||
master->lessee_id = 0;
|
|
||||||
INIT_LIST_HEAD(&master->lessees);
|
INIT_LIST_HEAD(&master->lessees);
|
||||||
INIT_LIST_HEAD(&master->lessee_list);
|
INIT_LIST_HEAD(&master->lessee_list);
|
||||||
idr_init(&master->leases);
|
idr_init(&master->leases);
|
||||||
|
|
Loading…
Reference in New Issue