Remove unnecessary error code (stream-pipe).
If failed to allocate mem for tensors-data handle, API returns out-of-mem error.
Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
* @retval #ML_ERROR_NONE Successful
* @retval #ML_ERROR_NOT_SUPPORTED Not supported.
* @retval #ML_ERROR_INVALID_PARAMETER Given parameter is invalid.
- * @retval #ML_ERROR_STREAMS_PIPE Failed to allocate new memory.
* @retval #ML_ERROR_OUT_OF_MEMORY Failed to allocate required memory.
*/
int ml_tensors_data_create (const ml_tensors_info_h info, ml_tensors_data_h *data);
if (status != ML_ERROR_NONE) {
return status;
}
- if (!_data) {
- return ML_ERROR_STREAMS_PIPE;
- }
for (i = 0; i < _data->num_tensors; i++) {
_data->tensors[i].tensor = g_malloc0 (_data->tensors[i].size);