Skip to content

Commit

Permalink
V4L/DVB (12159): soc_camera: Fix debug output of supported formats count
Browse files Browse the repository at this point in the history
The supported formats count must be set to 0 after debug output
right before the second pass.

Signed-off-by: Stefan Herbrechtsmeier <hbmeier@hni.uni-paderborn.de>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Stefan Herbrechtsmeier authored and Mauro Carvalho Chehab committed Jul 5, 2009
1 parent 3175da8 commit 14df2cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/soc_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,11 @@ static int soc_camera_init_user_formats(struct soc_camera_device *icd)
return -ENOMEM;

icd->num_user_formats = fmts;
fmts = 0;

dev_dbg(&icd->dev, "Found %d supported formats.\n", fmts);

/* Second pass - actually fill data formats */
fmts = 0;
for (i = 0; i < icd->num_formats; i++)
if (!ici->ops->get_formats) {
icd->user_formats[i].host_fmt = icd->formats + i;
Expand Down

0 comments on commit 14df2cc

Please sign in to comment.