mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
edid: Fix gcc 7.1 warning
This commit fixes the warning produced by gcc 7.1. Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:

committed by
Anatolij Gustschin

parent
156d64fa55
commit
bdc906dba9
@ -295,7 +295,7 @@ static void edid_print_dtd(struct edid_monitor_descriptor *monitor,
|
|||||||
|
|
||||||
h_total = h_active + h_blanking;
|
h_total = h_active + h_blanking;
|
||||||
v_total = v_active + v_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);
|
vfreq = pixclock / (v_total * h_total);
|
||||||
else
|
else
|
||||||
vfreq = 1; /* Error case */
|
vfreq = 1; /* Error case */
|
||||||
|
Reference in New Issue
Block a user