libcamera: ipu3: cio2: Use Size::isNull()

Use the Size::isNull() helper instead of using local code.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Niklas Söderlund 2020-06-28 20:45:11 +02:00
parent 7fc65e9680
commit 6bc4af7d0b

View file

@ -185,7 +185,7 @@ CIO2Device::generateConfiguration(Size size) const
StreamConfiguration cfg;
/* If no desired size use the sensor resolution. */
if (!size.width && !size.height)
if (size.isNull())
size = sensor_->resolution();
/* Query the sensor static information for closest match. */