mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
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>
This commit is contained in:
parent
42b5122e82
commit
7227c91130
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ static int tonga_populate_cac_tables(struct pp_hwmgr *hwmgr,
|
||||||
convert_to_vid(vddc_lookup_table->entries[index].us_cac_high);
|
convert_to_vid(vddc_lookup_table->entries[index].us_cac_high);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((data->vdd_gfx_control == SMU7_VOLTAGE_CONTROL_BY_SVID2)) {
|
if (data->vdd_gfx_control == SMU7_VOLTAGE_CONTROL_BY_SVID2) {
|
||||||
/* We are populating vddgfx CAC data to BapmVddgfx table in split mode */
|
/* We are populating vddgfx CAC data to BapmVddgfx table in split mode */
|
||||||
for (count = 0; count < vddgfx_level_count; count++) {
|
for (count = 0; count < vddgfx_level_count; count++) {
|
||||||
index = phm_get_voltage_index(vddgfx_lookup_table,
|
index = phm_get_voltage_index(vddgfx_lookup_table,
|
||||||
|
|
Loading…
Reference in a new issue