Skip to contentSkip to conversation

drm/amd/display: clean up some inconsistent indenting

PATCH Applied Yang Li 2 participants 2 messages Jul 1, 2022 – Jul 5, 2022

Subsystems (3)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 drm/amd/display: clean up some inconsistent indenting

Eliminate the follow smatch warning:
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:3151 commit_planes_for_stream() warn: inconsistent indenting

---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +5 -5
index 146fd4b864b2..d31da9c0256a 100644
@@ -3148,15 +3148,15 @@ static void commit_planes_for_stream(struct dc *dc,
 		else
 			dc->hwss.pipe_control_lock(dc, top_pipe_to_program, false);
 
-	if ((update_type != UPDATE_TYPE_FAST) && stream->update_flags.bits.dsc_changed)
-		if (top_pipe_to_program->stream_res.tg->funcs->lock_doublebuffer_enable) {
-			top_pipe_to_program->stream_res.tg->funcs->wait_for_state(
+		if ((update_type != UPDATE_TYPE_FAST) && stream->update_flags.bits.dsc_changed)
+			if (top_pipe_to_program->stream_res.tg->funcs->lock_doublebuffer_enable) {
+				top_pipe_to_program->stream_res.tg->funcs->wait_for_state(
 					top_pipe_to_program->stream_res.tg,
 					CRTC_STATE_VACTIVE);
-			top_pipe_to_program->stream_res.tg->funcs->wait_for_state(
+				top_pipe_to_program->stream_res.tg->funcs->wait_for_state(
 					top_pipe_to_program->stream_res.tg,
 					CRTC_STATE_VBLANK);
-			top_pipe_to_program->stream_res.tg->funcs->wait_for_state(
+				top_pipe_to_program->stream_res.tg->funcs->wait_for_state(
 					top_pipe_to_program->stream_res.tg,
 					CRTC_STATE_VACTIVE);
 
Signature · 1 line
2.20.1.7.g153144c
Applied
#1 lore raw

Applied. Thanks!

Alex

Quoted 37 lines · Yang Li

Eliminate the follow smatch warning:
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:3151 commit_planes_for_stream() warn: inconsistent indenting

---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +5 -6
index 146fd4b864b2..d31da9c0256a 100644
@@ -3148,15 +3148,15 @@ static void commit_planes_for_stream(struct dc *dc,
                else
                        dc->hwss.pipe_control_lock(dc, top_pipe_to_program, false);
 
-       if ((update_type != UPDATE_TYPE_FAST) && stream->update_flags.bits.dsc_changed)
-               if (top_pipe_to_program->stream_res.tg->funcs->lock_doublebuffer_enable) {
-                       top_pipe_to_program->stream_res.tg->funcs->wait_for_state(
+               if ((update_type != UPDATE_TYPE_FAST) && stream->update_flags.bits.dsc_changed)
+                       if (top_pipe_to_program->stream_res.tg->funcs->lock_doublebuffer_enable) {
+                               top_pipe_to_program->stream_res.tg->funcs->wait_for_state(
                                        top_pipe_to_program->stream_res.tg,
                                        CRTC_STATE_VACTIVE);
-                       top_pipe_to_program->stream_res.tg->funcs->wait_for_state(
+                               top_pipe_to_program->stream_res.tg->funcs->wait_for_state(
                                        top_pipe_to_program->stream_res.tg,
                                        CRTC_STATE_VBLANK);
-                       top_pipe_to_program->stream_res.tg->funcs->wait_for_state(
+                               top_pipe_to_program->stream_res.tg->funcs->wait_for_state(
                                        top_pipe_to_program->stream_res.tg,
                                        CRTC_STATE_VACTIVE);
 
--

2.20.1.7.g153144c