mirror of https://gitee.com/openkylin/linux.git
48ba813701
The drm_file->is_master field is redundant as it's equivalent to: drm_file->master && drm_file->master == drm_file->minor->master 1) "=>" Whenever we set drm_file->is_master, we also set: drm_file->minor->master = drm_file->master; Whenever we clear drm_file->is_master, we also call: drm_master_put(&drm_file->minor->master); which implicitly clears it to NULL. 2) "<=" minor->master cannot be set if it is non-NULL. Therefore, it stays as is unless a file drops it. If minor->master is NULL, it is only set by places that also adjust drm_file->is_master. Therefore, we can safely drop is_master and replace it by an inline helper that matches: drm_file->master && drm_file->master == drm_file->minor->master Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: David Herrmann <dh.herrmann@gmail.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
svga3d_reg.h | ||
svga3d_surfacedefs.h | ||
svga_escape.h | ||
svga_overlay.h | ||
svga_reg.h | ||
svga_types.h | ||
vmwgfx_buffer.c | ||
vmwgfx_cmdbuf_res.c | ||
vmwgfx_context.c | ||
vmwgfx_dmabuf.c | ||
vmwgfx_drv.c | ||
vmwgfx_drv.h | ||
vmwgfx_execbuf.c | ||
vmwgfx_fb.c | ||
vmwgfx_fence.c | ||
vmwgfx_fence.h | ||
vmwgfx_fifo.c | ||
vmwgfx_gmr.c | ||
vmwgfx_gmrid_manager.c | ||
vmwgfx_ioctl.c | ||
vmwgfx_irq.c | ||
vmwgfx_kms.c | ||
vmwgfx_kms.h | ||
vmwgfx_ldu.c | ||
vmwgfx_marker.c | ||
vmwgfx_mob.c | ||
vmwgfx_overlay.c | ||
vmwgfx_prime.c | ||
vmwgfx_reg.h | ||
vmwgfx_resource.c | ||
vmwgfx_resource_priv.h | ||
vmwgfx_scrn.c | ||
vmwgfx_shader.c | ||
vmwgfx_surface.c | ||
vmwgfx_ttm_glue.c |