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:
Thierry Reding 2014-12-08 15:55:28 +01:00
parent d700ba7a66
commit fb35c6b60e
1 changed files with 3 additions and 0 deletions

View File

@ -134,6 +134,9 @@ static bool tegra_dc_format_is_yuv(unsigned int format, bool *planar)
return true;
}
if (planar)
*planar = false;
return false;
}