Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915/display: take out dead code

if __waitfor timeout, ret will have -ETIMEDOUT. Then if condition
was met, and read_ret will have error that's handled.
Then if ret was zero, read_ret was zero ksv_ready must have value.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Link: https://lore.kernel.org/r/20250905104626.1274147-1-juhapekka.heikkila@gmail.com

authored by

Juha-Pekka Heikkila and committed by
Mika Kahola
7d8a7ec8 0d4a57f0

-2
-2
drivers/gpu/drm/i915/display/intel_hdcp.c
··· 334 334 return ret; 335 335 if (read_ret) 336 336 return read_ret; 337 - if (!ksv_ready) 338 - return -ETIMEDOUT; 339 337 340 338 return 0; 341 339 }