summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2020-10-13 15:58:26 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2020-10-21 17:01:28 +0100
commitc7bcae02a0865c650dcb54027aec6c34db0c78bf (patch)
tree26df705eac87856a180f5694e177947f568379a7
parentbf104042f9d861ca4e05e5b881d8953e0430762f (diff)
android: camera_device: Use existing variable definitions
Prevent variable shadowing by removing the redeclaration of variables with the same name (and type) where the existing variable can be reused. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--src/android/camera_device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp
index e9404c2f..5272b9ec 100644
--- a/src/android/camera_device.cpp
+++ b/src/android/camera_device.cpp
@@ -1316,7 +1316,7 @@ int CameraDevice::configureStreams(camera3_stream_configuration_t *stream_list)
* the Android camera3_stream_t.
*/
for (CameraStream &cameraStream : streams_) {
- int ret = cameraStream.configure();
+ ret = cameraStream.configure();
if (ret) {
LOG(HAL, Error) << "Failed to configure camera stream";
return ret;