| From d38be29822e5f6de98b83303c540b6a9b2ac8021 Mon Sep 17 00:00:00 2001 |
| From: Mauro Carvalho Chehab <m.chehab@samsung.com> |
| Date: Sun, 18 Aug 2013 09:36:03 -0300 |
| Subject: sh_mobile_ceu_camera: Fix a compilation warning |
| |
| 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> |
| (cherry picked from commit e5b6a69790c7112b90570db0202c6de621485fb9) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c | 3 +-- |
| 1 file changed, 1 insertion(+), 2 deletions(-) |
| |
| diff --git a/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c b/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c |
| index 905ed7e5..dc5ce6c1 100644 |
| --- a/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c |
| +++ b/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c |
| @@ -595,13 +595,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; |
| } |
| -- |
| 1.8.4.3.gca3854a |
| |