sh_mobile_ceu_camera: Fix a compilation warning
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 18 Aug 2013 12:36:03 +0000 (09:36 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 18 Aug 2013 12:36:03 +0000 (09:36 -0300)
drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c: In function 'sh_mobile_ceu_clock_start':
drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c:613:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]

Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c

index dae9716e34b1e932ff9263c9901857bc1db85d7d..8df22f7791753c9492665c985a639c6c53dda8dd 100644 (file)
@@ -610,13 +610,12 @@ static void sh_mobile_ceu_remove_device(struct soc_camera_device *icd)
 static int sh_mobile_ceu_clock_start(struct soc_camera_host *ici)
 {
        struct sh_mobile_ceu_dev *pcdev = ici->priv;
-       int ret;
 
        pm_runtime_get_sync(ici->v4l2_dev.dev);
 
        pcdev->buf_total = 0;
 
-       ret = sh_mobile_ceu_soft_reset(pcdev);
+       sh_mobile_ceu_soft_reset(pcdev);
 
        return 0;
 }