diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-05-18 23:43:04 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-05-18 23:49:04 +0300 |
commit | 06387039d6f59f8cb1829edfc09d2d9c8b33d62c (patch) | |
tree | c69377a518c5e3eb4fe058282703998f861c8d00 /src | |
parent | ba5d2c871acef4bbe6977e93014c8ff1f0a09e7f (diff) |
libcamera: pipeline: rkisp1: Fix usage of uninitialised variable
Commit 1a813a5c3ab7 introduced usage of an uninitialised variable. Fix it.
Fixes: 1a813a5c3ab7 ("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>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/pipeline/rkisp1/rkisp1.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp index b395405c..96553bf2 100644 --- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp +++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp @@ -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. |