Skip to content

Commit

Permalink
[media] soc_camera: ret is never used. get rid of it
Browse files Browse the repository at this point in the history
drivers/media/platform/soc_camera/soc_camera.c:1051:8: warning: variable 'ret' set but not used [-Wunused-but-set-variable]

Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Oct 28, 2012
1 parent 2e7b318 commit 84cc237
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/media/platform/soc_camera/soc_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -1048,10 +1048,8 @@ static void scan_add_host(struct soc_camera_host *ici)

list_for_each_entry(icd, &devices, list) {
if (icd->iface == ici->nr) {
int ret;

icd->parent = ici->v4l2_dev.dev;
ret = soc_camera_probe(icd);
soc_camera_probe(icd);
}
}

Expand Down

0 comments on commit 84cc237

Please sign in to comment.