mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
drm/i915/tc: Remove redundant wakeref=0 check from unblock_tc_cold()
After the previous patch unblock_tc_cold() will not be called in a disconnected mode, so the wakeref passed to it will be always non-zero. Remove the redundant check. Reviewed-by: Mika Kahola <mika.kahola@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230323142035.1432621-18-imre.deak@intel.com
This commit is contained in:
parent
976a368b71
commit
430ce0c7d3
|
|
@ -150,14 +150,6 @@ tc_cold_unblock(struct intel_tc_port *tc, enum intel_display_power_domain domain
|
|||
{
|
||||
struct drm_i915_private *i915 = tc_to_i915(tc);
|
||||
|
||||
/*
|
||||
* wakeref == -1, means some error happened saving save_depot_stack but
|
||||
* power should still be put down and 0 is a invalid save_depot_stack
|
||||
* id so can be used to skip it for non TC legacy ports.
|
||||
*/
|
||||
if (wakeref == 0)
|
||||
return;
|
||||
|
||||
intel_display_power_put(i915, domain, wakeref);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user