Commit 9d52210a authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: davinci_vpfe: get rid of an unused var at dm365_isif.c

Not sure what was the original idea here, but the implementation
went into a different way, and the fmt var is not used
anymore, as warned:

drivers/staging/media/davinci_vpfe/dm365_isif.c: In function '__isif_get_format':
drivers/staging/media/davinci_vpfe/dm365_isif.c:1401:29: warning: variable 'fmt' set but not used [-Wunused-but-set-variable]
   struct v4l2_subdev_format fmt;
                             ^~~
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 1ac9fe8c
...@@ -1397,14 +1397,9 @@ __isif_get_format(struct vpfe_isif_device *isif, ...@@ -1397,14 +1397,9 @@ __isif_get_format(struct vpfe_isif_device *isif,
struct v4l2_subdev_pad_config *cfg, unsigned int pad, struct v4l2_subdev_pad_config *cfg, unsigned int pad,
enum v4l2_subdev_format_whence which) enum v4l2_subdev_format_whence which)
{ {
if (which == V4L2_SUBDEV_FORMAT_TRY) { if (which == V4L2_SUBDEV_FORMAT_TRY)
struct v4l2_subdev_format fmt;
fmt.pad = pad;
fmt.which = which;
return v4l2_subdev_get_try_format(&isif->subdev, cfg, pad); return v4l2_subdev_get_try_format(&isif->subdev, cfg, pad);
}
return &isif->formats[pad]; return &isif->formats[pad];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment