提交 2b18d931 编写于 作者: L Lucas A. M. Magalhães 提交者: Xie XiuQi

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: NLucas A. M. Magalhães <lucmaga@gmail.com>
Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 2f89cc42
...@@ -204,13 +204,6 @@ static void *vimc_sen_process_frame(struct vimc_ent_device *ved, ...@@ -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, struct vimc_sen_device *vsen = container_of(ved, struct vimc_sen_device,
ved); 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); tpg_fill_plane_buffer(&vsen->tpg, 0, 0, vsen->frame);
return vsen->frame; return vsen->frame;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册