summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-07-01 14:44:07 +0200
committerJacopo Mondi <jacopo@jmondi.org>2020-08-03 11:16:17 +0200
commit320757897caba92d3cc6419db80e475de231cd0c (patch)
treed8fd3406066d5ef5bc71fccd8917e01c7d7b20dc
parent52a1332b4858546fe4ac72dca4475c16d2ff85b4 (diff)
libcamera: ipu3: Remove initialization of Size
The Size struct constructor defaults the width and height to 0. Remove the empty braced-list initialization as it is not required. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
-rw-r--r--src/libcamera/pipeline/ipu3/ipu3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index bc834f89..e30071cf 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -246,7 +246,7 @@ CameraConfiguration::Status IPU3CameraConfiguration::validate()
* only. If no resolution is requested for any stream, or if no sensor
* resolution is large enough, pick the largest one.
*/
- Size size = {};
+ Size size;
for (const StreamConfiguration &cfg : config_) {
if (cfg.size.width > size.width)