mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
drm/i915: Drop crtc NULL check from intel_crtc_active()
intel_crtc_active() is never called with a NULL crtc. Drop the redundant NULL check. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231207193441.20206-5-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
f175de44d0
commit
ed1566a982
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ static bool intel_crtc_active(struct intel_crtc *crtc)
|
|||
* crtc->state->active once we have proper CRTC states wired up
|
||||
* for atomic.
|
||||
*/
|
||||
return crtc && crtc->active && crtc->base.primary->state->fb &&
|
||||
return crtc->active && crtc->base.primary->state->fb &&
|
||||
crtc->config->hw.adjusted_mode.crtc_clock;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue