mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-10 14:43:54 +08:00
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>
This commit is contained in:
parent
26d7f34cae
commit
213c4b9663
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user