commit | fb35c6b60e6db1e8ae0d7d358b76f3f511bf2707 | [log] [tgz] |
---|---|---|
author | Thierry Reding <treding@nvidia.com> | Mon Dec 08 15:55:28 2014 +0100 |
committer | Thierry Reding <treding@nvidia.com> | Tue Jan 27 10:14:37 2015 +0100 |
tree | 9d9f76b3730dfe5cc1e4d3c5003ab62395866e83 | |
parent | d700ba7a6657d7c2be76b56996f54f02783456a6 [diff] |
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>
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index a56fccc..c2ab1a2 100644 --- a/drivers/gpu/drm/tegra/dc.c +++ b/drivers/gpu/drm/tegra/dc.c
@@ -134,6 +134,9 @@ return true; } + if (planar) + *planar = false; + return false; }