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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue