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>
This commit is contained in:
parent
2d0b69fc71
commit
30a97a2191
1 changed files with 2 additions and 4 deletions
|
@ -123,9 +123,8 @@ static void amdgpu_dm_crtc_notify_ta_to_read(struct work_struct *work)
|
||||||
secure_display_ctx = container_of(work, struct secure_display_context, notify_ta_work);
|
secure_display_ctx = container_of(work, struct secure_display_context, notify_ta_work);
|
||||||
crtc = secure_display_ctx->crtc;
|
crtc = secure_display_ctx->crtc;
|
||||||
|
|
||||||
if (!crtc) {
|
if (!crtc)
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
psp = &drm_to_adev(crtc->dev)->psp;
|
psp = &drm_to_adev(crtc->dev)->psp;
|
||||||
|
|
||||||
|
@ -151,10 +150,9 @@ static void amdgpu_dm_crtc_notify_ta_to_read(struct work_struct *work)
|
||||||
ret = psp_securedisplay_invoke(psp, TA_SECUREDISPLAY_COMMAND__SEND_ROI_CRC);
|
ret = psp_securedisplay_invoke(psp, TA_SECUREDISPLAY_COMMAND__SEND_ROI_CRC);
|
||||||
|
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
if (securedisplay_cmd->status != TA_SECUREDISPLAY_STATUS__SUCCESS) {
|
if (securedisplay_cmd->status != TA_SECUREDISPLAY_STATUS__SUCCESS)
|
||||||
psp_securedisplay_parse_resp_status(psp, securedisplay_cmd->status);
|
psp_securedisplay_parse_resp_status(psp, securedisplay_cmd->status);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
mutex_unlock(&psp->securedisplay_context.mutex);
|
mutex_unlock(&psp->securedisplay_context.mutex);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue