Skip to contentSkip to conversation

drm/amdgpu/display: fix compiler errors [-Werror,-Wparentheses-equality]

PATCH In review Vishwakarma, Pratik 2 participants 2 messages Feb 4, 2019 – Feb 5, 2019 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu/display: fix compiler errors [-Werror,-Wparentheses-equality]

Remove extraneous parentheses around the comparison to silence this warning

---
 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c +1 -1
index 7d102ac0d61b..1ef0074302c5 100644
@@ -63,7 +63,7 @@ void scaler_settings_calculation(struct dcn_bw_internal_vars *v)
 		if (v->interlace_output[k] == 1.0) {
 			v->v_ratio[k] = 2.0 * v->v_ratio[k];
 		}
-		if ((v->underscan_output[k] == 1.0)) {
+		if (v->underscan_output[k] == 1.0) {
 			v->h_ratio[k] = v->h_ratio[k] * v->under_scan_factor;
 			v->v_ratio[k] = v->v_ratio[k] * v->under_scan_factor;
 		}
Signature · 6 lines
2.17.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20190204081546.24935-1-Pratik.Vishwakarma-5C7GfCeVMHo@public.gmane.org

Reviewed-by Harry Wentland
#2 lore raw
Quoted 4 lines · Pratik

Remove extraneous parentheses around the comparison to silence this warning

Harry

Quoted 10 lines
---
 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c +0 -0
index 7d102ac0d61b..1ef0074302c5 100644

drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c void scaler_settings_calculation(struct dcn_bw_internal_vars *v) · line 69

Quoted 8 lines
drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c +1 -1
@@ -63,7 +63,7 @@ void scaler_settings_calculation(struct dcn_bw_internal_vars *v)
 		if (v->interlace_output[k] == 1.0) {
 			v->v_ratio[k] = 2.0 * v->v_ratio[k];
 		}
-		if ((v->underscan_output[k] == 1.0)) {
+		if (v->underscan_output[k] == 1.0) {
 			v->h_ratio[k] = v->h_ratio[k] * v->under_scan_factor;
 			v->v_ratio[k] = v->v_ratio[k] * v->under_scan_factor;
 		}

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx