From: Chris Wilson Date: Mon, 31 Jan 2011 11:16:33 +0000 (+0000) Subject: drm: Simplify and defend later checks when disabling a crtc X-Git-Tag: v2.6.38-rc4~17^2~15^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ede3ff5204b0117d00609f4980df3b864cefe96f;p=pandora-kernel.git 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 Signed-off-by: Chris Wilson --- Reading git-diff-tree failed