diff options
author | Mark Yao <mark.yao@rock-chips.com> | 2017-02-05 10:10:57 +0100 |
---|---|---|
committer | Mark Yao <mark.yao@rock-chips.com> | 2017-02-07 04:06:01 +0100 |
commit | 213c4b96639818a2dc8750d1b7a37672a9c9eaeb (patch) | |
tree | ab63f9affdede388dc4000384f54027f5739c05d /drivers/gpu/drm/rockchip/cdn-dp-reg.c | |
parent | Merge branch 'msm-next' of git://people.freedesktop.org/~robclark/linux into ... (diff) | |
download | linux-213c4b96639818a2dc8750d1b7a37672a9c9eaeb.tar.xz linux-213c4b96639818a2dc8750d1b7a37672a9c9eaeb.zip |
drm/rockchip: cdn-dp: fix cdn-dp complie warning
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>
Diffstat (limited to 'drivers/gpu/drm/rockchip/cdn-dp-reg.c')
-rw-r--r-- | drivers/gpu/drm/rockchip/cdn-dp-reg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/cdn-dp-reg.c b/drivers/gpu/drm/rockchip/cdn-dp-reg.c index 3a5b8a4aa1e7..319dbbaa3609 100644 --- 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: |