diff options
author | Jernej Skrabec <jernej.skrabec@siol.net> | 2017-05-23 23:05:30 +0200 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2017-06-09 15:29:59 +0200 |
commit | bdc906dba9309f919db79377f024fdd93acff60b (patch) | |
tree | 7e8bb05c9b6c4eb4680a596cd7a52b5d5e94702c /common/edid.c | |
parent | 156d64fa55e9914b144c5e83f2a9e13d1223a4d3 (diff) | |
download | u-boot-bdc906dba9309f919db79377f024fdd93acff60b.zip u-boot-bdc906dba9309f919db79377f024fdd93acff60b.tar.gz u-boot-bdc906dba9309f919db79377f024fdd93acff60b.tar.bz2 |
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>
Diffstat (limited to 'common/edid.c')
-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 19410aa..854d40c 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 */ |