Skip to contentSkip to conversation

media: vimc: Remove unused but set variables

PATCH New Lucas A. M. Magalhaes 1 participant 1 message Feb 7, 2019 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: vimc: Remove unused but set variables

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

---
 drivers/media/platform/vimc/vimc-sensor.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/media/platform/vimc/vimc-sensor.c +0 -7
index 93961a1e694f..59195f262623 100644
@@ -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;
Signature · 1 line
2.20.1