projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
156d64f
)
edid: Fix gcc 7.1 warning
author
Jernej Skrabec
<jernej.skrabec@siol.net>
Tue, 23 May 2017 21:05:30 +0000
(23:05 +0200)
committer
Anatolij Gustschin
<agust@denx.de>
Fri, 9 Jun 2017 13:29:59 +0000
(15:29 +0200)
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>
common/edid.c
patch
|
blob
|
history
diff --git
a/common/edid.c
b/common/edid.c
index
19410aa
..
854d40c
100644
(file)
--- 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 */