aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernard Zhao <bernard@vivo.com>2022-08-22 23:41:31 -0700
committerAlex Deucher <alexander.deucher@amd.com>2022-08-25 13:35:18 -0400
commita9c5e9c82039cf9f12bcb427160a2163df299b1f (patch)
tree8727c39dcab966530457ac5dedd7f640a7c517f6
parentdrm/amd: remove possible condition with no effect (if == else) (diff)
downloadlinux-dev-a9c5e9c82039cf9f12bcb427160a2163df299b1f.tar.xz
linux-dev-a9c5e9c82039cf9f12bcb427160a2163df299b1f.zip
drm/amd: remove possible condition with no effect (if == else)
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>
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c b/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c
index 97dc5ee475a1..5c078e822cc0 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c
@@ -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