>From fe755ce32e6bbbcc0e99d5a06440bed6257b1a23 Mon Sep 17 00:00:00 2001 From: Ivan Gomez <ivan.gomez@xxxxxx> Date: Wed, 20 Jan 2010 17:45:43 -0600 Subject: [PATCH] DSPBRIDGE: Remove DRV_ProcUpdatestate function The DRV_ProcUpdatestate function was only used in two places and it only assigned a value. Signed-off-by: Ivan Gomez <ivan.gomez@xxxxxx> --- drivers/dsp/bridge/rmgr/drv.c | 9 --------- drivers/dsp/bridge/rmgr/drv_interface.c | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/drv.c b/drivers/dsp/bridge/rmgr/drv.c index fd09a83..b7817aa 100644 --- a/drivers/dsp/bridge/rmgr/drv.c +++ b/drivers/dsp/bridge/rmgr/drv.c @@ -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, diff --git a/drivers/dsp/bridge/rmgr/drv_interface.c b/drivers/dsp/bridge/rmgr/drv_interface.c index 6d293bf..af8c6ad 100644 --- a/drivers/dsp/bridge/rmgr/drv_interface.c +++ b/drivers/dsp/bridge/rmgr/drv_interface.c @@ -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 -- 1.5.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html