summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/fbdev/msm/mdss_hdcp_1x.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/video/fbdev/msm/mdss_hdcp_1x.c b/drivers/video/fbdev/msm/mdss_hdcp_1x.c
index 8df9080129b9..0b394ea270cd 100644
--- a/drivers/video/fbdev/msm/mdss_hdcp_1x.c
+++ b/drivers/video/fbdev/msm/mdss_hdcp_1x.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2017, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2010-2020, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -1348,16 +1348,16 @@ static int hdcp_1x_authentication_part2(struct hdcp_1x *hdcp)
}
do {
- rc = hdcp_1x_transfer_v_h(hdcp);
- if (rc)
- goto error;
-
/* do not proceed further if no device connected */
if (!hdcp->current_tp.dev_count) {
rc = -EINVAL;
goto error;
}
+ rc = hdcp_1x_transfer_v_h(hdcp);
+ if (rc)
+ goto error;
+
rc = hdcp_1x_write_ksv_fifo(hdcp);
} while (--v_retry && rc);
error: