@@ -344,9 +344,6 @@
/* Invalid entry parameter. */
#define REG_E_INVALIDENTRY (REG_EBASE + 0x01)
-/* No more registry values. */
-#define REG_E_NOMOREITEMS (REG_EBASE + 0x02)
-
/* Insufficient space to hold data in registry value. */
#define REG_E_MOREDATA (REG_EBASE + 0x03)
@@ -281,7 +281,7 @@ dsp_status dcd_enumerate_object(IN s32 cIndex, IN enum dsp_dcdobjtype obj_type,
enum_refs++;
status = DSP_SOK;
- } else if (status == REG_E_NOMOREITEMS) {
+ } else if (status == -ENODATA) {
/* At the end of enumeration. Reset enum_refs. */
enum_refs = 0;
@@ -201,7 +201,7 @@ dsp_status regsup_enum_value(IN u32 dw_index, IN CONST char *pstrKey,
}
if (count && DSP_FAILED(ret))
- ret = REG_E_NOMOREITEMS;
+ ret = -ENODATA;
dev_dbg(bridge, "REG: enum Key %s, Value %s, status = 0x%x",
pstrKey, pstrValue, ret);