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> |
||
---|---|---|
.. | ||
android | ||
bcm | ||
ced1401 | ||
comedi | ||
cptm1217 | ||
crystalhd | ||
cxt1e1 | ||
dgap | ||
dgnc | ||
dgrp | ||
et131x | ||
frontier | ||
ft1000 | ||
fwserial | ||
gdm72xx | ||
gdm724x | ||
goldfish | ||
gs_fpgaboot | ||
iio | ||
imx-drm | ||
keucr | ||
line6 | ||
lustre | ||
media | ||
mt29f_spinand | ||
netlogic | ||
nokia_h4p | ||
nvec | ||
octeon | ||
octeon-usb | ||
olpc_dcon | ||
ozwpan | ||
panel | ||
phison | ||
quickstart | ||
rtl8188eu | ||
rtl8192e | ||
rtl8192ee | ||
rtl8192u | ||
rtl8712 | ||
rtl8723au | ||
rtl8821ae | ||
rts5208 | ||
sep | ||
serqt_usb2 | ||
silicom | ||
skein | ||
slicoss | ||
speakup | ||
ste_rmi4 | ||
tidspbridge | ||
unisys | ||
usbip | ||
vme | ||
vt6655 | ||
vt6656 | ||
winbond | ||
wlags49_h2 | ||
wlags49_h25 | ||
wlan-ng | ||
xgifb | ||
xillybus | ||
Kconfig | ||
Makefile | ||
staging.c |