summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominggoes Isakh <drjisakh@gmail.com>2016-09-23 18:10:38 +0200
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-01-13 19:31:29 +0100
commitc70556438dea707ca7532a40a38387b48db30726 (patch)
treee573bac0f291aa3f68b5e82389fd382376197c04
parent37c8664812d61f5642fd45f78ccbe922c8c64b09 (diff)
downloaddevice_samsung_galaxys2-common-c70556438dea707ca7532a40a38387b48db30726.zip
device_samsung_galaxys2-common-c70556438dea707ca7532a40a38387b48db30726.tar.gz
device_samsung_galaxys2-common-c70556438dea707ca7532a40a38387b48db30726.tar.bz2
galaxys2-common: Camera: Exit thread properly when focus fails
Change-Id: I7e0aff34ed5b1f727ce02a5a46351e4e9a1c1f4d
-rw-r--r--camera/exynos_camera.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/exynos_camera.c b/camera/exynos_camera.c
index de981ad..33c9a93 100644
--- a/camera/exynos_camera.c
+++ b/camera/exynos_camera.c
@@ -1719,7 +1719,7 @@ void *exynos_camera_auto_focus_thread(void *data)
rc = exynos_camera_params_apply(exynos_camera);
if (rc < 0) {
ALOGE("%s: Unable to apply params", __func__);
- return -1;
+ goto thread_exit;
}
}