mirror of https://gitee.com/openkylin/linux.git
drm/tegra: dc: Return planar flag for non-YUV modes
This prevents the compiler from warning about using a variable that is possibly uninitialized. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
d700ba7a66
commit
fb35c6b60e
|
@ -134,6 +134,9 @@ static bool tegra_dc_format_is_yuv(unsigned int format, bool *planar)
|
|||
return true;
|
||||
}
|
||||
|
||||
if (planar)
|
||||
*planar = false;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue