drm/amd: remove possible condition with no effect (if == else)
authorBernard Zhao <bernard@vivo.com>
Tue, 23 Aug 2022 06:41:31 +0000 (23:41 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Aug 2022 17:35:18 +0000 (13:35 -0400)
This patch fix cocci warning:
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c:1816:6-8:
WARNING: possible condition with no effect (if == else).

Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c

index 97dc5ee..5c078e8 100644 (file)
@@ -1816,8 +1816,6 @@ static bool dcn314_resource_construct(
 
        if (dc->ctx->dce_environment == DCE_ENV_PRODUCTION_DRV)
                dc->debug = debug_defaults_drv;
-       else if (dc->ctx->dce_environment == DCE_ENV_FPGA_MAXIMUS)
-               dc->debug = debug_defaults_diags;
        else
                dc->debug = debug_defaults_diags;
        // Init the vm_helper