libcamera: pipeline: rkisp1: Fix usage of uninitialised variable

Commit 1a813a5c3a introduced usage of an uninitialised variable. Fix it.

Fixes: 1a813a5c3a ("libcamera: media_device: Handle media device fd in acquire() and release()")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
Laurent Pinchart 2019-05-18 23:43:04 +03:00
parent ba5d2c871a
commit 06387039d6

View file

@ -159,12 +159,9 @@ int PipelineHandlerRkISP1::configureStreams(Camera *camera,
ret = link->setEnabled(enable);
if (ret < 0)
break;
return ret;
}
if (ret < 0)
return ret;
/*
* Configure the format on the sensor output and propagate it through
* the pipeline.