]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Remove extra pairs of parentheses in dce_calcs.c
authorMatthias Kaehlcke <mka@chromium.org>
Wed, 7 Feb 2018 19:49:28 +0000 (11:49 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:43 +0000 (14:19 -0500)
commit6b19e176efa1579719ef718c877753372acc7b3c
treeb3c77c4c785077cccfa7fda24f069db8ea61f86a
parent48682127451d7b5563194c77fbef5366f8f9c78e
drm/amd/display: Remove extra pairs of parentheses in dce_calcs.c

The double parentheses are not needed. Removing them fixes multiple
warnings like this when building with clang:

drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:617:42:
  error: equality comparison with extraneous parentheses
    [-Werror,-Wparentheses-equality]
  if ((data->graphics_micro_tile_mode == bw_def_rotated_micro_tiling)) {

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c