diff options
Diffstat (limited to 'src/android')
-rw-r--r-- | src/android/camera_hal_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/android/camera_hal_manager.cpp b/src/android/camera_hal_manager.cpp index 1e66f632..37ba0135 100644 --- a/src/android/camera_hal_manager.cpp +++ b/src/android/camera_hal_manager.cpp @@ -86,7 +86,7 @@ void CameraHalManager::run() CameraProxy *CameraHalManager::open(unsigned int id, const hw_module_t *hardwareModule) { - if (id < 0 || id >= numCameras()) { + if (id >= numCameras()) { LOG(HAL, Error) << "Invalid camera id '" << id << "'"; return nullptr; } |