drm/i915/dmc: use display instead of dereferencing dmc in intel_dmc_update_dc6_allowe...
authorDesnes Nunes <desnesn@redhat.com>
Thu, 23 Apr 2026 20:10:20 +0000 (17:10 -0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 24 Apr 2026 08:55:54 +0000 (11:55 +0300)
commite3507e53562fd0e2483a61f68acf1ae5fc698ce0
tree62b1fca5fe9923a10a3df1419eb8bc9a1c977d63
parent07095bb7ea730538c1cd92ca666a192c46977b03
drm/i915/dmc: use display instead of dereferencing dmc in intel_dmc_update_dc6_allowed_count()

There is no need for dereferencing the dmc pointer if the display is
already in the scope of intel_dmc_update_dc6_allowed_count function.

No functional change.

Signed-off-by: Desnes Nunes <desnesn@redhat.com>
Link: https://patch.msgid.link/20260423201020.506908-1-desnesn@redhat.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_dmc.c