Skip to content

Commit c86e5ab

Browse files
MarceloSpessotoalexdeucher
authored andcommitted
drm/amd/display: Fix hdcp1_execution.c codestyle
Remove braces from single statement if expression in hdcp1_execution.c file Signed-off-by: Marcelo Mendes Spessoto Junior <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 2f3be3c commit c86e5ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ static inline enum mod_hdcp_status check_hdcp_capable_dp(struct mod_hdcp *hdcp)
6363
static inline enum mod_hdcp_status check_r0p_available_dp(struct mod_hdcp *hdcp)
6464
{
6565
enum mod_hdcp_status status;
66+
6667
if (is_dp_hdcp(hdcp)) {
6768
status = (hdcp->auth.msg.hdcp1.bstatus &
6869
DP_BSTATUS_R0_PRIME_READY) ?
@@ -131,9 +132,8 @@ static inline uint8_t get_device_count(struct mod_hdcp *hdcp)
131132
static inline enum mod_hdcp_status check_device_count(struct mod_hdcp *hdcp)
132133
{
133134
/* Avoid device count == 0 to do authentication */
134-
if (0 == get_device_count(hdcp)) {
135+
if (get_device_count(hdcp) == 0)
135136
return MOD_HDCP_STATUS_HDCP1_DEVICE_COUNT_MISMATCH_FAILURE;
136-
}
137137

138138
/* Some MST display may choose to report the internal panel as an HDCP RX.
139139
* To update this condition with 1(because the immediate repeater's internal

0 commit comments

Comments
 (0)