/* ----------------------------------- Function Prototypes */
static int delete_strm(struct strm_object *stream_obj);
-static void delete_strm_mgr(struct strm_mgr *strm_mgr_obj);
/*
* ======== strm_allocate_buffer ========
if (DSP_SUCCEEDED(status))
*strm_man = strm_mgr_obj;
else
- delete_strm_mgr(strm_mgr_obj);
+ kfree(strm_mgr_obj);
DBC_ENSURE((DSP_SUCCEEDED(status) && *strm_man) ||
(DSP_FAILED(status) && *strm_man == NULL));
DBC_REQUIRE(refs > 0);
DBC_REQUIRE(strm_mgr_obj);
- delete_strm_mgr(strm_mgr_obj);
+ kfree(strm_mgr_obj);
}
/*
}
return status;
}
-
-/*
- * ======== delete_strm_mgr ========
- * Purpose:
- * Frees stream manager.
- */
-static void delete_strm_mgr(struct strm_mgr *strm_mgr_obj)
-{
- if (strm_mgr_obj)
- kfree(strm_mgr_obj);
-}