]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: vimc: Remove unused but set variables
authorLucas A. M. Magalhães <lucmaga@gmail.com>
Thu, 7 Feb 2019 23:59:41 +0000 (18:59 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 15:58:08 +0000 (10:58 -0500)
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>
drivers/media/platform/vimc/vimc-sensor.c

index 93961a1e694f231ee4044ef416cd5775b2b78cf9..59195f26262341f5c52c6bfe7429a7a85a7641c6 100644 (file)
@@ -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;