Re: [PATCH] drm/amd/powerplay: Remove extra pair of parentheses

2018-02-07 Thread Alex Deucher
On Wed, Feb 7, 2018 at 2:19 PM, Guenter Roeck wrote: > On Wed, Feb 7, 2018 at 11:10 AM, Matthias Kaehlcke wrote: >> 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: >>

Re: [PATCH] drm/amd/powerplay: Remove extra pair of parentheses

2018-02-07 Thread Guenter Roeck
On Wed, Feb 7, 2018 at 11:10 AM, Matthias Kaehlcke wrote: > 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 >

[PATCH] drm/amd/powerplay: Remove extra pair of parentheses

2018-02-07 Thread Matthias Kaehlcke
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_