@@ -83,15 +83,6 @@ static DSP_STATUS DRV_ProcFreeNodeRes(HANDLE hPCtxt);
static DSP_STATUS DRV_ProcFreeSTRMRes(HANDLE hPCtxt);
extern enum NODE_STATE NODE_GetState(HANDLE hNode);
-/* Update the state of process context */
-DSP_STATUS DRV_ProcUpdatestate(HANDLE hPCtxt, enum GPP_PROC_RES_STATE status)
-{
- struct PROCESS_CONTEXT *pCtxt = (struct PROCESS_CONTEXT *)hPCtxt;
- DSP_STATUS status1 = DSP_SOK;
- pCtxt->resState = status;
- return status1;
-}
-
/* Allocate and add a node resource element
* This function is called from .Node_Allocate. */
DSP_STATUS DRV_InsertNodeResElement(HANDLE hNode, HANDLE hNodeRes,
@@ -503,7 +503,7 @@ static int bridge_open(struct inode *ip, struct file *filp)
*/
pr_ctxt = MEM_Calloc(sizeof(struct PROCESS_CONTEXT), MEM_PAGED);
if (pr_ctxt)
- DRV_ProcUpdatestate(pr_ctxt, PROC_RES_ALLOCATED);
+ pr_ctxt->resSatate = PROC_RES_ALLOCATED;
else
status = -ENOMEM;
@@ -619,7 +619,7 @@ DSP_STATUS DRV_RemoveAllResources(HANDLE hPCtxt)
DRV_RemoveAllSTRMResElements(pCtxt);
DRV_RemoveAllNodeResElements(pCtxt);
DRV_RemoveAllDMMResElements(pCtxt);
- DRV_ProcUpdatestate(pCtxt, PROC_RES_FREED);
+ pCtxt->resState = PROC_RES_FREED;
return status;
}
#endif