diff mbox

DSPBRIDGE: Always delete nodes during resource cleanup

Message ID B852767254C5C94EBB1040EE0EFA060092D763FC@dlee01.ent.ti.com (mailing list archive)
State Accepted
Delegated to:
Headers show

Commit Message

Ramos Falcon, Ernesto April 17, 2010, 3:23 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/dsp/bridge/rmgr/drv.c b/drivers/dsp/bridge/rmgr/drv.c
index 98f9b78..75b9b9f 100644
--- a/drivers/dsp/bridge/rmgr/drv.c
+++ b/drivers/dsp/bridge/rmgr/drv.c
@@ -157,17 +157,11 @@  static dsp_status drv_proc_free_node_res(bhandle hPCtxt)
 			if (node_state <= NODE_DELETING) {
 				if ((node_state == NODE_RUNNING) ||
 				    (node_state == NODE_PAUSED) ||
-				    (node_state == NODE_TERMINATING)) {
+				    (node_state == NODE_TERMINATING))
 					status = node_terminate
 					    (node_res_obj->hnode, &status);
-					status =
-					    node_delete(node_res_obj->hnode,
-							ctxt);
-				} else if ((node_state == NODE_ALLOCATED)
-					   || (node_state == NODE_CREATED))
-					status =
-					    node_delete(node_res_obj->hnode,
-							ctxt);
+
+				status = node_delete(node_res_obj->hnode, ctxt);
 			}
 		}
 	}