linux/drivers/staging
David Herrmann 48ba813701 drm: drop redundant drm_file->is_master
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>
2014-08-05 16:07:50 +02:00
..
android staging: android: timed_output: fix use after free of dev 2014-06-19 17:33:37 -07:00
bcm
ced1401
comedi staging: comedi: addi_apci_1564: add addi_watchdog dependency 2014-06-18 15:11:22 -07:00
cptm1217
crystalhd
cxt1e1
dgap
dgnc
dgrp
et131x
frontier
ft1000
fwserial
gdm72xx
gdm724x
goldfish
gs_fpgaboot
iio staging: iio/ad7291: fix error code in ad7291_probe() 2014-06-21 11:35:30 +01:00
imx-drm drm: drop redundant drm_file->is_master 2014-08-05 16:07:50 +02:00
keucr
line6
lustre
media Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2014-07-21 11:44:34 -07:00
mt29f_spinand
netlogic
nokia_h4p
nvec
octeon
octeon-usb
olpc_dcon
ozwpan
panel
phison
quickstart
rtl8188eu
rtl8192e
rtl8192ee
rtl8192u
rtl8712
rtl8723au staging: rtl8723au: rtw_resume(): release semaphore before exit on error 2014-07-21 12:10:26 -07:00
rtl8821ae
rts5208
sep
serqt_usb2
silicom
skein
slicoss
speakup
ste_rmi4
tidspbridge staging: tidspbridge: fix an erroneous removal of parentheses 2014-06-26 21:10:31 -04:00
unisys
usbip
vme
vt6655 staging: vt6655: Fix disassociated messages every 10 seconds 2014-07-24 15:10:42 -07:00
vt6656
winbond
wlags49_h2
wlags49_h25
wlan-ng
xgifb
xillybus
Kconfig
Makefile
staging.c