drm/amd/display: Fix useless else if in display_mode_vba_util_32.c
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Wed, 16 Aug 2023 06:46:26 +0000 (12:16 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Aug 2023 18:58:20 +0000 (14:58 -0400)
commitc183060031ee70b7641de260207b3013eebf5707
treecbfe21415eeca6e39f0f1b9f9c7b6f6cea2e6a87
parent80578f1641aaba95c70adc40d84d1b619e92f2d4
drm/amd/display: Fix useless else if in display_mode_vba_util_32.c

The assignment of the else if and else branches is the same, so the else if
here is redundant, hence removed it.

Fixes the below:

drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c:4664:8-10: WARNING: possible condition with no effect (if == else)

Cc: Hamza Mahfooz <hamza.mahfooz@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@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>
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c