Fix Svace issue - UNREACHABLE_CODE 10/100510/1 accepted/tizen/common/20161129.173639 accepted/tizen/ivi/20161130.015442 accepted/tizen/mobile/20161130.015222 accepted/tizen/tv/20161130.015308 accepted/tizen/wearable/20161130.015353 submit/tizen/20161129.052917
authorJeongmo Yang <jm80.yang@samsung.com>
Mon, 28 Nov 2016 09:42:55 +0000 (18:42 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Mon, 28 Nov 2016 09:42:55 +0000 (18:42 +0900)
[Version] 0.2.60
[Profile] Common
[Issue Type] Svace
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20161122.5]

Change-Id: I2360535428e835226da7fa5a5520ef1c41163003
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
legacy/src/legacy_camera.c
packaging/mmsvc-camera.spec

index 9f87431..01c0b88 100644 (file)
@@ -2559,14 +2559,11 @@ int legacy_camera_attr_set_af_mode(camera_h camera, camera_attr_af_mode_e mode)
                        MMCAM_CAMERA_AF_SCAN_RANGE, MM_CAMCORDER_AUTO_FOCUS_MACRO,
                        NULL);
                break;
-       case CAMERA_ATTR_AF_FULL:
+       default: /* CAMERA_ATTR_AF_FULL */
                ret = mm_camcorder_set_attributes(handle->mm_handle, NULL,
                        MMCAM_CAMERA_AF_SCAN_RANGE, MM_CAMCORDER_AUTO_FOCUS_FULL,
                        NULL);
                break;
-       default:
-               LOGE("invalid mode %d", mode);
-               return CAMERA_ERROR_INVALID_PARAMETER;
        }
 
        return __convert_camera_error_code(__func__, ret);
@@ -2644,11 +2641,6 @@ int legacy_camera_attr_set_exposure_mode(camera_h camera, camera_attr_exposure_m
        int ret = MM_ERROR_NONE;
        camera_s *handle = (camera_s *)camera;
 
-       if (mode < CAMERA_ATTR_EXPOSURE_MODE_OFF || mode > CAMERA_ATTR_EXPOSURE_MODE_CUSTOM) {
-               LOGE("INVALID_PARAMETER(0x%08x)", CAMERA_ERROR_INVALID_PARAMETER);
-               return CAMERA_ERROR_INVALID_PARAMETER;
-       }
-
        ret = mm_camcorder_set_attributes(handle->mm_handle, NULL,
                MMCAM_CAMERA_EXPOSURE_MODE, maptable[mode],
                NULL);
index 7e15a0e..e4e306e 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mmsvc-camera
 Summary:    A Camera module for muse server
-Version:    0.2.59
+Version:    0.2.60
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0