[media] soc_camera: ret is never used. get rid of it
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 27 Oct 2012 19:42:05 +0000 (16:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 28 Oct 2012 09:39:03 +0000 (07:39 -0200)
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>
drivers/media/platform/soc_camera/soc_camera.c

index d3f0b84e2d7086e24b4e75a863e34d23464cda15..6f76ada1b2d8d6f51fb14c5112d3dfd61f47c3b3 100644 (file)
@@ -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);
                }
        }