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>
This commit is contained in:
Kieran Bingham 2020-10-13 15:58:26 +01:00
parent bf104042f9
commit c7bcae02a0

View file

@ -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;