Skip to content

Commit f02163c

Browse files
laeachurRadhey Shyam Pandey
authored andcommitted
drm: xlnx: hdmi: Remove unused hdmi->wait_for_streamup check in xlnx_hdcp_key_store()
xlnx_hdcp_key_store() will return the number of keys it has configured successfully. Otherwise, it returns an error if the HDMI stream is not ready or in any other failure cases. The flag wait_for_streamup check is useless as this variable is always '0' in the driver. The HDMI driver is not updating this variable in any conditions. So, this condition is removed because the HDCP code flow performs these checks in respective api's already. Signed-off-by: Lakshmi Prasanna Eachuri <lakshmi.prasanna.eachuri@amd.com> Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
1 parent b2017e4 commit f02163c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

‎drivers/gpu/drm/xlnx/xlnx_hdmi.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -803,9 +803,6 @@ static ssize_t xlnx_hdcp_key_store(struct device *sysfs_dev, struct device_attri
803803
return ret;
804804
}
805805

806-
if (hdmi->wait_for_streamup)
807-
return ret;
808-
809806
if (hdmi->config.hdcp2x_enable) {
810807
ret = xlnx_start_hdcp_engine(&hdmi->txhdcp,
811808
HDMI_MAX_LANES);

0 commit comments

Comments
 (0)