diff options
author | Ernesto Ramos <ernesto@ti.com> | 2010-07-28 18:45:25 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-28 19:22:42 +0400 |
commit | 157990f0d7f70aaa2b0158f959994eb0f65c05c0 (patch) | |
tree | 63e2cda24839de45e22917115b9cfdf7fe6cb0c7 /drivers/staging/tidspbridge/pmgr/cod.c | |
parent | e6486d8cee8d5be063cc2971ad274eb90f27e18c (diff) | |
download | linux-157990f0d7f70aaa2b0158f959994eb0f65c05c0.tar.xz |
staging:ti dspbridge: remove DSP_SUCCEEDED macro from pmgr
Since status succeeded is now 0 macro DSP_SUCCEEDED
is not necessary anymore.
Signed-off-by: Ernesto Ramos <ernesto@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/tidspbridge/pmgr/cod.c')
-rw-r--r-- | drivers/staging/tidspbridge/pmgr/cod.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/tidspbridge/pmgr/cod.c b/drivers/staging/tidspbridge/pmgr/cod.c index 81102d2d2eeb..9f902dee7ccc 100644 --- a/drivers/staging/tidspbridge/pmgr/cod.c +++ b/drivers/staging/tidspbridge/pmgr/cod.c @@ -411,7 +411,7 @@ int cod_get_section(struct cod_libraryobj *lib, char *str_sect, status = -ESPIPE; } - DBC_ENSURE(DSP_SUCCEEDED(status) || ((*addr == 0) && (*len == 0))); + DBC_ENSURE(!status || ((*addr == 0) && (*len == 0))); return status; } @@ -532,7 +532,7 @@ int cod_load_base(struct cod_manager *cod_mgr_obj, u32 num_argc, char *args[], if (DSP_FAILED(status)) cod_mgr_obj->fxns.close_fxn(cod_mgr_obj->base_lib); - if (DSP_SUCCEEDED(status)) + if (!status) cod_mgr_obj->loaded = true; else cod_mgr_obj->base_lib = NULL; @@ -562,11 +562,11 @@ int cod_open(struct cod_manager *hmgr, char *sz_coff_path, if (lib == NULL) status = -ENOMEM; - if (DSP_SUCCEEDED(status)) { + if (!status) { lib->cod_mgr = hmgr; status = hmgr->fxns.open_fxn(hmgr->target, sz_coff_path, flags, &lib->dbll_lib); - if (DSP_SUCCEEDED(status)) + if (!status) *lib_obj = lib; } @@ -601,7 +601,7 @@ int cod_open_base(struct cod_manager *hmgr, char *sz_coff_path, hmgr->base_lib = NULL; } status = hmgr->fxns.open_fxn(hmgr->target, sz_coff_path, flags, &lib); - if (DSP_SUCCEEDED(status)) { + if (!status) { /* hang onto the library for subsequent sym table usage */ hmgr->base_lib = lib; strncpy(hmgr->sz_zl_file, sz_coff_path, COD_MAXPATHLENGTH - 1); |