diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2015-11-04 17:10:47 -0200 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2015-11-10 10:58:49 +0100 |
commit | a4dedd5a14a8910313b1b5d3f3e6cf0bb3e9d78c (patch) | |
tree | 7c34dabb614f06561853ef1ca6fdc004d05658ba /drivers/gpu/drm/i915/intel_fbc.c | |
parent | 571050226c5dd38e49c66dd4738133b775ef600e (diff) | |
download | op-kernel-dev-a4dedd5a14a8910313b1b5d3f3e6cf0bb3e9d78c.zip op-kernel-dev-a4dedd5a14a8910313b1b5d3f3e6cf0bb3e9d78c.tar.gz |
drm/i915: remove unnecessary check for crtc->primary->fb
We already check if the CRTC is visible, and it shouldn't be possible
to have a visible CRTC without an FB.
This was noticed by both Chris and Ville on different ocasions.
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1446664257-32012-4-git-send-email-paulo.r.zanoni@intel.com
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_fbc.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_fbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c index 72c336f..4a21435 100644 --- a/drivers/gpu/drm/i915/intel_fbc.c +++ b/drivers/gpu/drm/i915/intel_fbc.c @@ -503,7 +503,7 @@ static struct drm_crtc *intel_fbc_find_crtc(struct drm_i915_private *dev_priv) break; } - if (!crtc || crtc->primary->fb == NULL) + if (!crtc) return NULL; return crtc; |