ipa: raspberrypi: Use direct return value for configure()
Now that we support returning int directly in addition to other output parameters, improve the configure() function in the raspberrypi IPA interface. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -1250,9 +1250,8 @@ int RPiCameraData::configureIPA(const CameraConfiguration *config)
|
||||
/* Ready the IPA - it must know about the sensor resolution. */
|
||||
ipa::RPi::ConfigOutput result;
|
||||
|
||||
ipa_->configure(sensorInfo_, streamConfig, entityControls, ipaConfig,
|
||||
&result, &ret);
|
||||
|
||||
ret = ipa_->configure(sensorInfo_, streamConfig, entityControls, ipaConfig,
|
||||
&result);
|
||||
if (ret < 0) {
|
||||
LOG(RPI, Error) << "IPA configuration failed!";
|
||||
return -EPIPE;
|
||||
|
||||
Reference in New Issue
Block a user