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 a56fccc..c2ab1a2 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;
 }