drm/amd/display: reduce else-if to else in dcn10_blank_pixel_data()
authorTom Rix <trix@redhat.com>
Fri, 27 Jan 2023 01:38:23 +0000 (17:38 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Feb 2023 20:37:45 +0000 (15:37 -0500)
commit67cdd3a5cc03591a98a303e5e2086a470650967f
tree052f62eae40d62711c8ddb503eea5d84f1cc369f
parent65a4cfb45e0e29a10fb35655f2375e1fc2f13c65
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: aa5a57773042 ("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>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c