projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26d7f34
)
drm/rockchip: cdn-dp: fix cdn-dp complie warning
author
Mark Yao
<mark.yao@rock-chips.com>
Sun, 5 Feb 2017 09:10:57 +0000
(17:10 +0800)
committer
Mark Yao
<mark.yao@rock-chips.com>
Tue, 7 Feb 2017 03:06:01 +0000
(11:06 +0800)
fix warning:
drivers/gpu/drm/rockchip/cdn-dp-reg.c:632:24: warning:
'val[1]' may be used uninitialized in this function [-Wmaybe-uninitialized]
msa_misc = 2 * val[0] + 32 * val[1] +
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/cdn-dp-reg.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/rockchip/cdn-dp-reg.c
b/drivers/gpu/drm/rockchip/cdn-dp-reg.c
index 3a5b8a4aa1e7a360adeb83d240abf316f5f3fbcc..319dbbaa36099460313f789a1fd6758a12d4bb18 100644
(file)
--- a/
drivers/gpu/drm/rockchip/cdn-dp-reg.c
+++ b/
drivers/gpu/drm/rockchip/cdn-dp-reg.c
@@
-592,7
+592,7
@@
static int cdn_dp_get_msa_misc(struct video_info *video,
struct drm_display_mode *mode)
{
u32 msa_misc;
- u8 val[2];
+ u8 val[2]
= {0}
;
switch (video->color_fmt) {
case PXL_RGB: