@@ -385,7 +385,7 @@ typedef dsp_status(*dbll_load_sect_fxn) (struct dbll_library_obj *lib,
* Returns:
* DSP_SOK: Success.
* ENOMEM: Memory allocation failure.
- * DSP_EFOPEN: File open failure.
+ * EBADF: File open failure.
* DSP_EFREAD: File read failure.
* DSP_ECORRUPTFILE: Unable to determine target type.
* Requires:
@@ -192,9 +192,6 @@
/* Unable to find a named section in DSP executable */
#define DSP_ENOSECT (DSP_EBASE + 0x32)
-/* Unable to open file */
-#define DSP_EFOPEN (DSP_EBASE + 0x33)
-
/* Unable to read file */
#define DSP_EFREAD (DSP_EBASE + 0x34)
@@ -915,10 +915,10 @@ static dsp_status dof_open(struct dbll_library_obj *zl_lib)
if (zl_lib->desc == NULL) {
(zl_lib->target_obj->attrs.fclose) (zl_lib->fp);
zl_lib->fp = NULL;
- status = DSP_EFOPEN;
+ status = EBADF;
}
} else {
- status = DSP_EFOPEN;
+ status = EBADF;
}
return status;