diff options
author | Thierry Reding <treding@nvidia.com> | 2014-12-08 15:55:28 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-01-27 10:14:37 +0100 |
commit | fb35c6b60e6db1e8ae0d7d358b76f3f511bf2707 (patch) | |
tree | 9d9f76b3730dfe5cc1e4d3c5003ab62395866e83 /drivers/gpu/drm/tegra | |
parent | d700ba7a6657d7c2be76b56996f54f02783456a6 (diff) | |
download | linux-fb35c6b60e6db1e8ae0d7d358b76f3f511bf2707.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpu/drm/tegra')
-rw-r--r-- | drivers/gpu/drm/tegra/dc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index a56fccc428d5..c2ab1a2da6a3 100644 --- a/drivers/gpu/drm/tegra/dc.c +++ b/drivers/gpu/drm/tegra/dc.c @@ -134,6 +134,9 @@ static bool tegra_dc_format_is_yuv(unsigned int format, bool *planar) return true; } + if (planar) + *planar = false; + return false; } |