Skip to content

Commit 31906f4

Browse files
MarceloSpessotoalexdeucher
authored andcommitted
drm/amd/display: Fix hdcp2_execution.c codestyle
Remove braces for single statement if expressions and change comparison order for hdcp2_execution.c file Signed-off-by: Marcelo Mendes Spessoto Junior <marcelomspessoto@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 30c822a commit 31906f4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/gpu/drm/amd/display/modules/hdcp/hdcp2_execution.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,8 @@ static inline uint8_t get_device_count(struct mod_hdcp *hdcp)
208208
static enum mod_hdcp_status check_device_count(struct mod_hdcp *hdcp)
209209
{
210210
/* Avoid device count == 0 to do authentication */
211-
if (0 == get_device_count(hdcp)) {
211+
if (get_device_count(hdcp) == 0)
212212
return MOD_HDCP_STATUS_HDCP1_DEVICE_COUNT_MISMATCH_FAILURE;
213-
}
214213

215214
/* Some MST display may choose to report the internal panel as an HDCP RX. */
216215
/* To update this condition with 1(because the immediate repeater's internal */
@@ -689,9 +688,8 @@ static enum mod_hdcp_status validate_stream_ready(struct mod_hdcp *hdcp,
689688
if (is_hdmi_dvi_sl_hdcp(hdcp)) {
690689
if (!process_rxstatus(hdcp, event_ctx, input, &status))
691690
goto out;
692-
if (event_ctx->rx_id_list_ready) {
691+
if (event_ctx->rx_id_list_ready)
693692
goto out;
694-
}
695693
}
696694
if (is_hdmi_dvi_sl_hdcp(hdcp))
697695
if (!mod_hdcp_execute_and_set(check_stream_ready_available,

0 commit comments

Comments
 (0)