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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user