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

Commit cc4d8283 authored by Lucas A. M. Magalhães's avatar Lucas A. M. Magalhães Committed by Greg Kroah-Hartman
Browse files

media: vimc: Remove unused but set variables



[ Upstream commit 5515e414f42bf2769caae15b634004d456658284 ]

Remove unused but set variables to clean up the code and avoid
warning.

Signed-off-by: default avatarLucas A. M. Magalhães <lucmaga@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c629fed0
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -204,13 +204,6 @@ static void *vimc_sen_process_frame(struct vimc_ent_device *ved,
{
	struct vimc_sen_device *vsen = container_of(ved, struct vimc_sen_device,
						    ved);
	const struct vimc_pix_map *vpix;
	unsigned int frame_size;

	/* Calculate the frame size */
	vpix = vimc_pix_map_by_code(vsen->mbus_format.code);
	frame_size = vsen->mbus_format.width * vpix->bpp *
		     vsen->mbus_format.height;

	tpg_fill_plane_buffer(&vsen->tpg, 0, 0, vsen->frame);
	return vsen->frame;