Message ID | 496565EC904933469F292DDA3F1663E602AA725DC7@dlee06.ent.ti.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | |
Headers | show |
diff --git a/drivers/dsp/bridge/rmgr/strm.c b/drivers/dsp/bridge/rmgr/strm.c index 1bb4670..e004205 100644 --- a/drivers/dsp/bridge/rmgr/strm.c +++ b/drivers/dsp/bridge/rmgr/strm.c @@ -634,12 +634,12 @@ func_cont: status); } } - if (DSP_SUCCEEDED(status)) + if (DSP_SUCCEEDED(status)) { *phStrm = pStrm; - else + DRV_ProcInsertSTRMResElement(*phStrm, &hSTRMRes, pr_ctxt); + } else { (void)DeleteStrm(pStrm); - - DRV_ProcInsertSTRMResElement(*phStrm, &hSTRMRes, pr_ctxt); + } /* ensure we return a documented error code */ DBC_Ensure((DSP_SUCCEEDED(status) &&