Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/display: Remove redundant braces in 'amdgpu_dm_crtc_notify_ta_to_read()'

Adhere to Linux kernel coding style.

Reported by checkpatch:

WARNING: braces {} are not necessary for single statement blocks

Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Srinivasan Shanmugam and committed by
Alex Deucher
30a97a21 2d0b69fc

+2 -4
+2 -4
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
··· 123 123 secure_display_ctx = container_of(work, struct secure_display_context, notify_ta_work); 124 124 crtc = secure_display_ctx->crtc; 125 125 126 - if (!crtc) { 126 + if (!crtc) 127 127 return; 128 - } 129 128 130 129 psp = &drm_to_adev(crtc->dev)->psp; 131 130 ··· 150 151 ret = psp_securedisplay_invoke(psp, TA_SECUREDISPLAY_COMMAND__SEND_ROI_CRC); 151 152 152 153 if (!ret) { 153 - if (securedisplay_cmd->status != TA_SECUREDISPLAY_STATUS__SUCCESS) { 154 + if (securedisplay_cmd->status != TA_SECUREDISPLAY_STATUS__SUCCESS) 154 155 psp_securedisplay_parse_resp_status(psp, securedisplay_cmd->status); 155 - } 156 156 } 157 157 158 158 mutex_unlock(&psp->securedisplay_context.mutex);