summaryrefslogtreecommitdiff
path: root/drivers/dio
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-01-31 11:16:33 (GMT)
committerChris Wilson <chris@chris-wilson.co.uk>2011-01-31 12:36:33 (GMT)
commitede3ff5204b0117d00609f4980df3b864cefe96f (patch)
treedda9eb0628576ad239f1315d05e94359db1f4770 /drivers/dio
parent9334ef755f060e251f3f395caeda1a58b6834ea3 (diff)
downloadlinux-ede3ff5204b0117d00609f4980df3b864cefe96f.tar.xz
drm: Simplify and defend later checks when disabling a crtc
By setting the FB of a CRTC to NULL, we are turning off the CRTC (and so disable the unused encoders and connectors). As such we can simplify the later tests by making sure the set->mode is NULL. Setting the num_connectors to zero means that we do not need to loop over the unused connectors. All current usage appears correct, this only builds additional defense into the routine. References: https://bugzilla.kernel.org/show_bug.cgi?id=27722 Tested-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/dio')
0 files changed, 0 insertions, 0 deletions