Commit 213c4b96 authored by Mark Yao's avatar Mark Yao

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: default avatarMark Yao <mark.yao@rock-chips.com>
parent 26d7f34c
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment