[PATCH 2/2] drm/amd/display: clean else not following close brace

Joao Paulo Pereira da Silva jppaulo11 at usp.br
Tue Feb 13 22:43:10 UTC 2024


From: jppaulo <jppaulo11 at hotmail.com>

Put else statement in the same line and after the close brace.

Signed-off-by: Joao Paulo Pereira da Silva <jppaulo11 at usp.br>
---
 drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
index be5a6d008b29..e750c853890e 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
@@ -396,8 +396,7 @@ void link_enc_cfg_link_encs_assign(
 				eng_id_req = stream->link->dpia_preferred_eng_id;
 
 			eng_id = find_first_avail_link_enc(stream->ctx, state, eng_id_req);
-		}
-		else
+		} else
 			eng_id =  link_enc->preferred_engine;
 
 		add_link_enc_assignment(state, stream, eng_id);
-- 
2.43.0



More information about the amd-gfx mailing list