Skip to content
Snippets Groups Projects
Commit bdc906db authored by Jernej Skrabec's avatar Jernej Skrabec Committed by Anatolij Gustschin
Browse files

edid: Fix gcc 7.1 warning


This commit fixes the warning produced by gcc 7.1.

Signed-off-by: default avatarJernej Skrabec <jernej.skrabec@siol.net>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 156d64fa
No related branches found
No related tags found
No related merge requests found
......@@ -295,7 +295,7 @@ static void edid_print_dtd(struct edid_monitor_descriptor *monitor,
h_total = h_active + h_blanking;
v_total = v_active + v_blanking;
if (v_total * h_total)
if (v_total > 0 && h_total > 0)
vfreq = pixclock / (v_total * h_total);
else
vfreq = 1; /* Error case */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment