]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/tegra: dc: Return planar flag for non-YUV modes
authorThierry Reding <treding@nvidia.com>
Mon, 8 Dec 2014 14:55:28 +0000 (15:55 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 27 Jan 2015 09:14:37 +0000 (10:14 +0100)
This prevents the compiler from warning about using a variable that is
possibly uninitialized.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c

index a56fccc428d506ac9b753031bf33b8a6d5f8f31d..c2ab1a2da6a330196e6e19913204d1d37c2e10a5 100644 (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;
 }