]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/display: use xe->display to decide whether to do anything
authorJani Nikula <jani.nikula@intel.com>
Fri, 16 May 2025 12:17:00 +0000 (15:17 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 20 May 2025 17:55:23 +0000 (20:55 +0300)
commit5a9f299f956ef9764f56044cfca7aafa23cea1d1
tree83219bbb183655f73e585949b21a3dd646997168
parent7e49ab36e6f3fb6edc250609ece1548bf80c50cc
drm/xe/display: use xe->display to decide whether to do anything

Since we only initialize xe->display when xe->info.probe_display, we can
use !xe->display to bail out early. This seems cleaner and more accurate
than relying on xe->info.probe_display, since xe->display may indeed be
NULL.

Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://lore.kernel.org/r/945d2a987214044a81f4816684972961b772b45a.1747397638.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/xe/display/xe_display.c