@@ -286,7 +286,7 @@ extern bool cod_init(void);
* envp: array of environment strings for DSP exec.
* Returns:
* DSP_SOK: Success.
- * COD_E_OPENFAILED: Failed to open target code.
+ * -EBADF: Failed to open target code.
* COD_E_LOADFAILED: Failed to load code onto target.
* Requires:
* COD module initialized.
@@ -315,7 +315,7 @@ extern dsp_status cod_load_base(struct cod_manager *cod_mgr_obj,
* and cod_get_section.
* Returns:
* S_OK: Success.
- * COD_E_OPENFAILED: Failed to open target code.
+ * -EBADF: Failed to open target code.
* Requires:
* COD module initialized.
* hmgr is valid.
@@ -337,7 +337,7 @@ extern dsp_status cod_open(struct cod_manager *hmgr,
* flags: Specifies whether to load symbols.
* Returns:
* DSP_SOK: Success.
- * COD_E_OPENFAILED: Failed to open target code.
+ * -EBADF: Failed to open target code.
* Requires:
* COD module initialized.
* hmgr is valid.
@@ -240,9 +240,6 @@
/* Unable to initialize the ZL COFF parsing module. */
#define COD_E_ZLCREATEFAILED (COD_EBASE + 0x03)
-/* Unable to open DSP executable COFF file. */
-#define COD_E_OPENFAILED (COD_EBASE + 0x04)
-
/* Unable to parse DSP executable COFF file. */
#define COD_E_LOADFAILED (COD_EBASE + 0x05)
@@ -966,7 +966,7 @@ dsp_status proc_load(void *hprocessor, IN CONST s32 argc_index,
dev_brd_write_fxn,
p_proc_object->hdev_obj, NULL);
if (DSP_FAILED(status)) {
- if (status == COD_E_OPENFAILED) {
+ if (status == -EBADF) {
dev_dbg(bridge, "%s: Failure to Load the EXE\n",
__func__);
}