diff mbox

[RFC,11/13] DSPBRIDGE: Cleanup custom error code (REG_E_INVALIDSUBKEY -> -ENOKEY)

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

Commit Message

Hebbar, Shivananda April 15, 2010, 9:18 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 679bb59..60f902c 100644
--- a/arch/arm/plat-omap/include/dspbridge/errbase.h
+++ b/arch/arm/plat-omap/include/dspbridge/errbase.h
@@ -341,9 +341,6 @@ 
 /* FAILURE Codes : REG */
 #define REG_EBASE                   (DSP_COMP_EBASE + 0x800)
 
-/* Invalid subkey parameter. */
-#define REG_E_INVALIDSUBKEY         (REG_EBASE + 0x00)
-
 /* Invalid entry parameter. */
 #define REG_E_INVALIDENTRY          (REG_EBASE + 0x01)
 
diff --git a/drivers/dsp/bridge/services/regsup.c b/drivers/dsp/bridge/services/regsup.c
index 275d91c..eca9bb2 100644
--- a/drivers/dsp/bridge/services/regsup.c
+++ b/drivers/dsp/bridge/services/regsup.c
@@ -172,7 +172,7 @@  dsp_status regsup_enum_value(IN u32 dw_index, IN CONST char *pstrKey,
 			     IN OUT char *pstrValue, IN OUT u32 * pdwValueSize,
 			     IN OUT char *pstrData, IN OUT u32 * pdwDataSize)
 {
-	dsp_status ret = REG_E_INVALIDSUBKEY;
+	dsp_status ret = -ENOKEY;
 	struct reg_value *rv = (struct reg_value *)lst_first(reg_key_list);
 	u32 dw_key_len;
 	u32 count = 0;