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:
parent
bf104042f9
commit
c7bcae02a0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue