[libcamera-devel] [PATCH 10/20] libcamera: ipu3: Remove initialization of Size
Jacopo Mondi
jacopo at jmondi.org
Tue Jul 14 12:42:02 CEST 2020
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 at ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
---
src/libcamera/pipeline/ipu3/ipu3.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index b480d41f89ab..6a93a48c2402 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)
--
2.27.0
More information about the libcamera-devel
mailing list