diff --git a/services/src/sensor_service.cpp b/services/src/sensor_service.cpp index b083a7317dc83dcdb75913794e81b0dd23086004..58db772bfe909c300904d28ea54bf4c6030c8f81 100644 --- a/services/src/sensor_service.cpp +++ b/services/src/sensor_service.cpp @@ -68,15 +68,12 @@ void SensorService::OnStart() #ifdef HDF_DRIVERS_INTERFACE_SENSOR if (!InitInterface()) { SEN_HILOGE("Init interface error"); - return; } if (!InitDataCallback()) { SEN_HILOGE("Init data callback error"); - return; } if (!InitSensorList()) { SEN_HILOGE("Init sensor list error"); - return; } sensorDataProcesser_ = new (std::nothrow) SensorDataProcesser(sensorMap_); CHKPV(sensorDataProcesser_);