summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorLucas A. M. Magalhães2019-02-08 00:59:41 +0100
committerMauro Carvalho Chehab2019-02-18 16:58:08 +0100
commit5515e414f42bf2769caae15b634004d456658284 (patch)
tree860edc9f652cce05b1903af36e677ebd1375c4cb /drivers/media/platform
parentmedia: imx: Set capture compose rectangle in capture_device_set_format (diff)
downloadkernel-qcow2-linux-5515e414f42bf2769caae15b634004d456658284.tar.gz
kernel-qcow2-linux-5515e414f42bf2769caae15b634004d456658284.tar.xz
kernel-qcow2-linux-5515e414f42bf2769caae15b634004d456658284.zip
media: vimc: Remove unused but set variables
Remove unused but set variables to clean up the code and avoid warning. Signed-off-by: Lucas A. M. Magalhães <lucmaga@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/vimc/vimc-sensor.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/media/platform/vimc/vimc-sensor.c b/drivers/media/platform/vimc/vimc-sensor.c
index 93961a1e694f..59195f262623 100644
--- a/drivers/media/platform/vimc/vimc-sensor.c
+++ b/drivers/media/platform/vimc/vimc-sensor.c
@@ -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;