diff options
author | Lucas A. M. Magalhães <lucmaga@gmail.com> | 2019-02-07 18:59:41 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-06 13:05:37 +0100 |
commit | cc4d8283f6e9c5084fe61321a37c2fcf4256b0fd (patch) | |
tree | 163a3b687927b20093531b283e1d92899c349222 /drivers/media | |
parent | c629fed0347e72409d314c6f6b9641eaec10fd58 (diff) | |
download | linux-stable-cc4d8283f6e9c5084fe61321a37c2fcf4256b0fd.tar.gz linux-stable-cc4d8283f6e9c5084fe61321a37c2fcf4256b0fd.tar.bz2 linux-stable-cc4d8283f6e9c5084fe61321a37c2fcf4256b0fd.zip |
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: 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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/vimc/vimc-sensor.c | 7 |
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 9e0d70e9f119..3f0ffd4915cd 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; |