diff options
author | Tom Rini <trini@konsulko.com> | 2017-06-10 09:48:09 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-06-10 09:48:09 -0400 |
commit | d2e1ee686ab16c022d1a3049a35b4ce89a25d34e (patch) | |
tree | 8cacb796cda155844349ebd6ff68935dcc8e2042 /common | |
parent | 75fd49c836d9a1750c9b6d86c0511b990fbe9fa8 (diff) | |
parent | 76a5e1b7156d16fec3dfa17c5135b28d4d657f0e (diff) | |
download | u-boot-d2e1ee686ab16c022d1a3049a35b4ce89a25d34e.tar.gz |
Merge branch 'master' of git://git.denx.de/u-boot-video
Diffstat (limited to 'common')
-rw-r--r-- | common/edid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/edid.c b/common/edid.c index 19410aa4fc..854d40c8f8 100644 --- a/common/edid.c +++ b/common/edid.c @@ -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 */ |