mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
drm/i915/hdcp: Remove the encoder check in hdcp enable
Remove the intel_encoder NULL check from _intel_hdcp_enable. With all the changes it has gone through this check has become unnecessary since at this point the connector is supposed to have the encoder in it. Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Link: https://lore.kernel.org/r/20250819150729.88561-1-suraj.kandpal@intel.com
This commit is contained in:
parent
3b6f62b6b5
commit
e548e04e61
|
|
@ -2446,12 +2446,6 @@ static int _intel_hdcp_enable(struct intel_atomic_state *state,
|
|||
if (!hdcp->shim)
|
||||
return -ENOENT;
|
||||
|
||||
if (!connector->encoder) {
|
||||
drm_err(display->drm, "[CONNECTOR:%d:%s] encoder is not initialized\n",
|
||||
connector->base.base.id, connector->base.name);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
mutex_lock(&hdcp->mutex);
|
||||
mutex_lock(&dig_port->hdcp.mutex);
|
||||
drm_WARN_ON(display->drm,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user