diff mbox

[RFC,16/19] DSPBRIDGE: Cleanup custom error code (DSP_ENOTCONNECTED -> ENOTCONN)

Message ID 19F8576C6E063C45BE387C64729E7394044DEBEB2C@dbde02.ent.ti.com (mailing list archive)
State Not Applicable
Delegated to:
Headers show

Commit Message

Hebbar, Shivananda March 25, 2010, 8:07 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/plat-omap/include/dspbridge/errbase.h b/arch/arm/plat-omap/include/dspbridge/errbase.h
index 7e2f0b6..e564284 100644
--- a/arch/arm/plat-omap/include/dspbridge/errbase.h
+++ b/arch/arm/plat-omap/include/dspbridge/errbase.h
@@ -188,9 +188,6 @@ 
 /* Invalid stream mode */
 #define DSP_ESTRMMODE               (DSP_EBASE + 0x3a)
 
-/* Nodes not connected */
-#define DSP_ENOTCONNECTED           (DSP_EBASE + 0x3b)
-
 /* Not shared memory */
 #define DSP_ENOTSHAREDMEM           (DSP_EBASE + 0x3c)
 
diff --git a/drivers/dsp/bridge/rmgr/node.c b/drivers/dsp/bridge/rmgr/node.c
index 7903342..46481b6 100644
--- a/drivers/dsp/bridge/rmgr/node.c
+++ b/drivers/dsp/bridge/rmgr/node.c
@@ -1206,7 +1206,7 @@  dsp_status node_create(struct node_object *hnode)
 	     hnode->num_inputs - 1) ||
 	    (hnode->num_outputs && hnode->max_output_index >
 	     hnode->num_outputs - 1))
-		status = DSP_ENOTCONNECTED;
+		status = ENOTCONN;
 
 	if (DSP_SUCCEEDED(status)) {
 		/* If node's create function is not loaded, load it */