From: Mauro Carvalho Chehab Date: Sat, 27 Oct 2012 19:42:05 +0000 (-0300) Subject: [media] soc_camera: ret is never used. get rid of it X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=84cc2377ee72cfa5745fcd26919d4b1aa3e0e9e5;p=openwrt%2Fstaging%2Fblogic.git [media] soc_camera: ret is never used. get rid of it drivers/media/platform/soc_camera/soc_camera.c:1051:8: warning: variable 'ret' set but not used [-Wunused-but-set-variable] Cc: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/soc_camera/soc_camera.c b/drivers/media/platform/soc_camera/soc_camera.c index d3f0b84e2d70..6f76ada1b2d8 100644 --- a/drivers/media/platform/soc_camera/soc_camera.c +++ b/drivers/media/platform/soc_camera/soc_camera.c @@ -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); } }