OSDN Git Service

drm/amd/powerplay: Remove extra pair of parentheses
authorMatthias Kaehlcke <mka@chromium.org>
Wed, 7 Feb 2018 19:10:17 +0000 (11:10 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:42 +0000 (14:19 -0500)
commit7227c911303db23404ebb126928e55cfad8e2545
tree52ad30fc05ed35f21d600cbc9dbc842e6f704fab
parent42b5122e828a6ccd9952ad3116343dc032d33efe
drm/amd/powerplay: Remove extra pair of parentheses

The double parentheses are not needed. Removing them fixes the following
warning when building with clang:

drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c:419:29:
  error: equality comparison with extraneous parentheses
    [-Werror,-Wparentheses-equality]
  if ((data->vdd_gfx_control == SMU7_VOLTAGE_CONTROL_BY_SVID2)) {

Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c