Skip to content

Commit 67cdd3a

Browse files
Tom Rixalexdeucher
authored andcommitted
drm/amd/display: reduce else-if to else in dcn10_blank_pixel_data()
checkpatch reports drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c:2902:13: style: Expression is always true because 'else if' condition is opposite to previous condition at line 2895. [multiCondition] } else if (blank) { ^ drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c:2895:6: note: first condition if (!blank) { ^ drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c:2902:13: note: else if condition is opposite to first condition } else if (blank) { It is not necessary to explicitly the check != condition, an else is simplier. Fixes: aa5a577 ("drm/amd/display: Vari-bright looks disabled near end of MM14") Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 65a4cfb commit 67cdd3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2899,7 +2899,7 @@ void dcn10_blank_pixel_data(
28992899
dc->hwss.set_pipe(pipe_ctx);
29002900
stream_res->abm->funcs->set_abm_level(stream_res->abm, stream->abm_level);
29012901
}
2902-
} else if (blank) {
2902+
} else {
29032903
dc->hwss.set_abm_immediate_disable(pipe_ctx);
29042904
if (stream_res->tg->funcs->set_blank) {
29052905
stream_res->tg->funcs->wait_for_state(stream_res->tg, CRTC_STATE_VBLANK);

0 commit comments

Comments
 (0)