OSDN Git Service

amd/display/dc: remove repeating expression
authorWang Ming <machel@vivo.com>
Wed, 14 Jun 2023 03:49:23 +0000 (11:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Jun 2023 19:31:42 +0000 (15:31 -0400)
commit1ff310b97f82437237a1d779195b0d90b90da070
tree2cf3a9be4fc728d1059d08eab16e7182aced898c
parent2222dcb0775d36de28992f56455ab3967b30d380
amd/display/dc: remove repeating expression

Identify issues that arise by using the tests/doubletest.cocci
semantic patch. Need to remove duplicate expression in if statement.

Signed-off-by: Wang Ming <machel@vivo.com>
Reviewed-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c