Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb35c6b6 authored by Thierry Reding's avatar Thierry Reding
Browse files

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: default avatarThierry Reding <treding@nvidia.com>
parent d700ba7a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -134,6 +134,9 @@ static bool tegra_dc_format_is_yuv(unsigned int format, bool *planar)
		return true;
	}

	if (planar)
		*planar = false;

	return false;
}