CHNL_IS_OUTPUT(pchnl->chnl_mode))
                        return -EPIPE;
                /* No other possible states left */
-               DBC_ASSERT(0);
        }
 
        dev_obj = dev_get_first();
         * Note: for dma chans dw_dsp_addr contains dsp address
         * of SM buffer.
         */
-       DBC_ASSERT(chnl_mgr_obj->word_size != 0);
        /* DSP address */
        chnl_packet_obj->dsp_tx_addr = dw_dsp_addr / chnl_mgr_obj->word_size;
        chnl_packet_obj->byte_size = byte_size;
                        CHNL_IOCSTATCOMPLETE);
        list_add_tail(&chnl_packet_obj->link, &pchnl->io_requests);
        pchnl->cio_reqs++;
-       DBC_ASSERT(pchnl->cio_reqs <= pchnl->chnl_packets);
        /*
         * If end of stream, update the channel state to prevent
         * more IOR's.
        if (is_eos)
                pchnl->state |= CHNL_STATEEOS;
 
-       /* Legacy DSM Processor-Copy */
-       DBC_ASSERT(pchnl->chnl_type == CHNL_PCPY);
        /* Request IO from the DSP */
        io_request_chnl(chnl_mgr_obj->iomgr, pchnl,
                        (CHNL_IS_INPUT(pchnl->chnl_mode) ? IO_INPUT :
                list_add_tail(&chirp->link, &pchnl->io_completions);
                pchnl->cio_cs++;
                pchnl->cio_reqs--;
-               DBC_ASSERT(pchnl->cio_reqs >= 0);
        }
 
        spin_unlock_bh(&chnl_mgr_obj->chnl_mgr_lock);
        status = bridge_chnl_cancel_io(chnl_obj);
        if (status)
                return status;
-       /* Assert I/O on this channel is now cancelled: Protects from io_dpc */
-       DBC_ASSERT((pchnl->state & CHNL_STATECANCEL));
        /* Invalidate channel object: Protects from CHNL_GetIOCompletion() */
        /* Free the slot in the channel manager: */
        pchnl->chnl_mgr_obj->channels[pchnl->chnl_id] = NULL;
                 *      mgr_attrts->max_channels = CHNL_MAXCHANNELS =
                 *                       DDMA_MAXDDMACHNLS = DDMA_MAXZCPYCHNLS.
                 */
-               DBC_ASSERT(mgr_attrts->max_channels == CHNL_MAXCHANNELS);
                max_channels = CHNL_MAXCHANNELS + CHNL_MAXCHANNELS * CHNL_PCPY;
                /* Create array of channels */
                chnl_mgr_obj->channels = kzalloc(sizeof(struct chnl_object *)
        omap_mbox_disable_irq(dev_ctxt->mbox, IRQ_RX);
        if (dequeue_ioc) {
                /* Dequeue IOC and set chan_ioc; */
-               DBC_ASSERT(!list_empty(&pchnl->io_completions));
                chnl_packet_obj = list_first_entry(&pchnl->io_completions,
                                struct chnl_irp, link);
                list_del(&chnl_packet_obj->link);
                        return status;
        }
 
-       DBC_ASSERT(ch_id < chnl_mgr_obj->max_channels);
 
        /* Create channel object: */
        pchnl = kzalloc(sizeof(struct chnl_object), GFP_KERNEL);
 {
        int status = 0;
 
-       DBC_ASSERT(!(event_mask & ~(DSP_STREAMDONE | DSP_STREAMIOCOMPLETION)));
 
        if (event_mask)
                status = ntfy_register(chnl_obj->ntfy_obj, hnotification,
 
        chnl_mgr_obj = io_manager->chnl_mgr;
        sm = io_manager->shared_mem;
        if (io_mode == IO_INPUT) {
-               /*
-                * Assertion fires if CHNL_AddIOReq() called on a stream
-                * which was cancelled, or attached to a dead board.
-                */
-               DBC_ASSERT((pchnl->state == CHNL_STATEREADY) ||
-                          (pchnl->state == CHNL_STATEEOS));
                /* Indicate to the DSP we have a buffer available for input */
                set_chnl_busy(sm, pchnl->chnl_id);
                *mbx_val = MBX_PCPY_CLASS;
        } else if (io_mode == IO_OUTPUT) {
-               /*
-                * This assertion fails if CHNL_AddIOReq() was called on a
-                * stream which was cancelled, or attached to a dead board.
-                */
-               DBC_ASSERT((pchnl->state & ~CHNL_STATEEOS) ==
-                          CHNL_STATEREADY);
                /*
                 * Record the fact that we have a buffer available for
                 * output.
                 */
                chnl_mgr_obj->output_mask |= (1 << pchnl->chnl_id);
        } else {
-               DBC_ASSERT(io_mode);    /* Shouldn't get here. */
        }
 func_end:
        return;
        dw_arg = sm->arg;
        if (chnl_id >= CHNL_MAXCHANNELS) {
                /* Shouldn't be here: would indicate corrupted shm. */
-               DBC_ASSERT(chnl_id);
                goto func_end;
        }
        pchnl = chnl_mgr_obj->channels[chnl_id];
 
        (void)dev_get_symbol(dev_context->dev_obj, SHMBASENAME,
                             &ul_shm_base_virt);
        ul_shm_base_virt *= DSPWORDSIZE;
-       DBC_ASSERT(ul_shm_base_virt != 0);
        /* DSP Virtual address */
        ul_tlb_base_virt = dev_context->atlb_entry[0].dsp_va;
-       DBC_ASSERT(ul_tlb_base_virt <= ul_shm_base_virt);
        ul_shm_offset_virt =
            ul_shm_base_virt - (ul_tlb_base_virt * DSPWORDSIZE);
        /* Kernel logical address */
        ul_shm_base = dev_context->atlb_entry[0].gpp_va + ul_shm_offset_virt;
 
-       DBC_ASSERT(ul_shm_base != 0);
        /* 2nd wd is used as sync field */
        dw_sync_addr = ul_shm_base + SHMSYNCOFFSET;
        /* Write a signature into the shm base + offset; this will
 
        }
        /* TODO -- Assert may be a too hard restriction here.. May be we should
         * just return with failure when the CLK ID does not match */
-       /* DBC_ASSERT(clk_id_index < MBX_PM_MAX_RESOURCES); */
        if (clk_id_index == MBX_PM_MAX_RESOURCES) {
                /* return with a more meaningfull error code */
                return -EPERM;
 
                status = dev_get_symbol(dev_context->dev_obj,
                                        SHMBASENAME, &ul_shm_base_virt);
        }
-       DBC_ASSERT(ul_shm_base_virt != 0);
 
        /* Check if it is a read of Trace section */
        if (!status && !ul_trace_sec_beg) {
                status = dev_get_symbol(dev_context->dev_obj,
                                        DSP_TRACESEC_BEG, &ul_trace_sec_beg);
        }
-       DBC_ASSERT(ul_trace_sec_beg != 0);
 
        if (!status && !ul_trace_sec_end) {
                status = dev_get_symbol(dev_context->dev_obj,
                                        DSP_TRACESEC_END, &ul_trace_sec_end);
        }
-       DBC_ASSERT(ul_trace_sec_end != 0);
 
        if (!status) {
                if ((dsp_addr <= ul_trace_sec_end) &&
                        status = dev_get_symbol(dev_context->dev_obj,
                                                DYNEXTBASE, &ul_dyn_ext_base);
                }
-               DBC_ASSERT(ul_dyn_ext_base != 0);
 
                if (!status) {
                        status = dev_get_symbol(dev_context->dev_obj,
                                                EXTBASE, &ul_ext_base);
                }
-               DBC_ASSERT(ul_ext_base != 0);
 
                if (!status) {
                        status = dev_get_symbol(dev_context->dev_obj,
                                                EXTEND, &ul_ext_end);
                }
-               DBC_ASSERT(ul_ext_end != 0);
 
                /* Trace buffer is right after the shm SEG0,
                 *  so set the base address to SHMBASE */
                        ul_ext_end = ul_trace_sec_end;
                }
 
-               DBC_ASSERT(ul_ext_end != 0);
-               DBC_ASSERT(ul_ext_end > ul_ext_base);
 
                if (ul_ext_end < ul_ext_base)
                        status = -EPERM;
                if (!status) {
                        ul_tlb_base_virt =
                            dev_context->atlb_entry[0].dsp_va * DSPWORDSIZE;
-                       DBC_ASSERT(ul_tlb_base_virt <= ul_shm_base_virt);
                        dw_ext_prog_virt_mem =
                            dev_context->atlb_entry[0].gpp_va;
 
                        /* Get SHM_BEG  EXT_BEG and EXT_END. */
                        ret = dev_get_symbol(dev_context->dev_obj,
                                             SHMBASENAME, &ul_shm_base_virt);
-               DBC_ASSERT(ul_shm_base_virt != 0);
                if (dynamic_load) {
                        if (!ret) {
                                if (symbols_reloaded)
                                            (dev_context->dev_obj, DYNEXTBASE,
                                             &ul_ext_base);
                        }
-                       DBC_ASSERT(ul_ext_base != 0);
                        if (!ret) {
                                /* DR  OMAPS00013235 : DLModules array may be
                                 * in EXTMEM. It is expected that DYNEXTMEM and
                                            dev_get_symbol
                                            (dev_context->dev_obj, EXTBASE,
                                             &ul_ext_base);
-                               DBC_ASSERT(ul_ext_base != 0);
                                if (!ret)
                                        ret =
                                            dev_get_symbol
                if (trace_load)
                        ul_ext_base = ul_shm_base_virt;
 
-               DBC_ASSERT(ul_ext_end != 0);
-               DBC_ASSERT(ul_ext_end > ul_ext_base);
                if (ul_ext_end < ul_ext_base)
                        ret = -EPERM;
 
                if (!ret) {
                        ul_tlb_base_virt =
                            dev_context->atlb_entry[0].dsp_va * DSPWORDSIZE;
-                       DBC_ASSERT(ul_tlb_base_virt <= ul_shm_base_virt);
 
                        if (symbols_reloaded) {
                                ret = dev_get_symbol
 
 #ifndef DBC_
 #define DBC_
 
-/* Assertion Macros: */
-#ifdef CONFIG_TIDSPBRIDGE_DEBUG
-
-#define DBC_ASSERT(exp) \
-    if (!(exp)) \
-       pr_err("%s, line %d: Assertion (" #exp ") failed.\n", \
-       __FILE__, __LINE__)
-#else
-#define DBC_ASSERT(exp) {}
-#endif /* DEBUG */
-
 #endif /* DBC_ */
 
        if (mgr_attrts == NULL)
                mgr_attrts = &cmm_dfltmgrattrs; /* set defaults */
 
-       /* 4 bytes minimum */
-       DBC_ASSERT(mgr_attrts->min_block_size >= 4);
        /* save away smallest block allocation for this cmm mgr */
        cmm_obj->min_block_size = mgr_attrts->min_block_size;
        cmm_obj->page_size = PAGE_SIZE;
                        if (status) {
                                /* Uh oh, this shouldn't happen. Descriptor
                                 * gone! */
-                               DBC_ASSERT(false);      /* CMM is leaking mem */
+                               pr_err("%s, line %d: Assertion failed\n",
+                                      __FILE__, __LINE__);
                        }
                }
        }
 
        cmm_mgr_obj = (struct cmm_object *)xlator_obj->cmm_mgr;
        /* get this translator's default SM allocator */
-       DBC_ASSERT(xlator_obj->seg_id > 0);
        allocator = cmm_mgr_obj->pa_gppsm_seg_tab[xlator_obj->seg_id - 1];
        if (!allocator)
                goto loop_cont;
 
        if (!status && gbl_search)
                dev_dbg(bridge, "%s: Symbol not found: %s\n", __func__, name);
 
-       DBC_ASSERT((status && (dbll_sym != NULL))
-                  || (!status && (dbll_sym == NULL)));
-
        ret_sym = (struct dynload_symbol *)dbll_sym;
        return ret_sym;
 }
 
 
        if (dev_obj) {
                /* Require of BrdWrite() */
-               DBC_ASSERT(dev_obj->bridge_context != NULL);
                status = (*dev_obj->bridge_interface.brd_write) (
                                        dev_obj->bridge_context, host_buf,
                                        dsp_add, ul_num_bytes, mem_space);
        /* Create the device object, and pass a handle to the Bridge driver for
         * storage. */
        if (!status) {
-               DBC_ASSERT(drv_fxns);
                dev_obj = kzalloc(sizeof(struct dev_object), GFP_KERNEL);
                if (dev_obj) {
                        /* Fill out the rest of the Dev Object structure: */
                        status = (dev_obj->bridge_interface.dev_create)
                            (&dev_obj->bridge_context, dev_obj,
                             host_res);
-                       /* Assert bridge_dev_create()'s ensure clause: */
-                       DBC_ASSERT(status
-                                  || (dev_obj->bridge_context != NULL));
                } else {
                        status = -ENOMEM;
                }
        struct dev_object *dev_obj = hdev_obj;
 
        /* There can be only one Node Manager per DEV object */
-       DBC_ASSERT(!dev_obj->node_mgr);
        status = node_create_mgr(&dev_obj->node_mgr, hdev_obj);
        if (status)
                dev_obj->node_mgr = NULL;
 
                 *  "_\0" + length of sz_obj_type string + terminating NULL.
                 */
                dw_key_len = strlen(DCD_REGKEY) + 1 + sizeof(sz_obj_type) + 1;
-               DBC_ASSERT(dw_key_len < DCD_MAXPATHLENGTH);
 
                /* Create proper REG key; concatenate DCD_REGKEY with
                 * obj_type. */
        /* Pre-determine final key length. It's length of DCD_REGKEY +
         *  "_\0" + length of sz_obj_type string + terminating NULL */
        dw_key_len = strlen(DCD_REGKEY) + 1 + sizeof(sz_obj_type) + 1;
-       DBC_ASSERT(dw_key_len < DCD_MAXPATHLENGTH);
 
        /* Create proper REG key; concatenate DCD_REGKEY with obj_type. */
        strncpy(sz_reg_key, DCD_REGKEY, strlen(DCD_REGKEY) + 1);
        }
 
        /* Ensure sz_uuid + 1 is not greater than sizeof sz_sect_name. */
-       DBC_ASSERT((strlen(sz_uuid) + 1) < sizeof(sz_sect_name));
 
        /* Create section name based on node UUID. A period is
         * pre-pended to the UUID string to form the section name.
         *  "_\0" + length of sz_obj_type string + terminating NULL.
         */
        dw_key_len = strlen(DCD_REGKEY) + 1 + sizeof(sz_obj_type) + 1;
-       DBC_ASSERT(dw_key_len < DCD_MAXPATHLENGTH);
 
        /* Create proper REG key; concatenate DCD_REGKEY with obj_type. */
        strncpy(sz_reg_key, DCD_REGKEY, strlen(DCD_REGKEY) + 1);
                break;
        default:
                status = -EINVAL;
-               DBC_ASSERT(false);
        }
        if (!status) {
                if ((strlen(sz_reg_key) + strlen(sz_obj_type)) <
         *  "_\0" + length of sz_obj_type string + terminating NULL.
         */
        dw_key_len = strlen(DCD_REGKEY) + 1 + sizeof(sz_obj_type) + 1;
-       DBC_ASSERT(dw_key_len < DCD_MAXPATHLENGTH);
 
        /* Create proper REG key; concatenate DCD_REGKEY with obj_type. */
        strncpy(sz_reg_key, DCD_REGKEY, strlen(DCD_REGKEY) + 1);
 
        node_type = node_get_type(hnode);
        node_msg_args = pargs->asa.node_msg_args;
        max = disp_obj->bufsize_rms;    /*Max # of RMS words that can be sent */
-       DBC_ASSERT(max == RMS_COMMANDBUFSIZE);
        chars_in_rms_word = sizeof(rms_word) / disp_obj->char_size;
        /* Number of RMS words needed to hold arg data */
        dw_length =
        }
        if (!status) {
                ul_bytes = total * sizeof(rms_word);
-               DBC_ASSERT(ul_bytes < (RMS_COMMANDBUFSIZE * sizeof(rms_word)));
                status = send_message(disp_obj, node_get_timeout(hnode),
                                      ul_bytes, node_env);
        }
                        status = -EPERM;
                } else {
                        if (CHNL_IS_IO_COMPLETE(chnl_ioc_obj)) {
-                               DBC_ASSERT(chnl_ioc_obj.buf == pbuf);
                                if (*((int *)chnl_ioc_obj.buf) < 0) {
                                        /* Translate DSP's to kernel error */
                                        status = -EREMOTEIO;
 
 {
        struct node_res_object *node_res_obj =
            (struct node_res_object *)node_resource;
-       DBC_ASSERT(node_resource != NULL);
        node_res_obj->node_allocated = status;
 }
 
 {
        struct node_res_object *node_res_obj =
            (struct node_res_object *)node_resource;
-       DBC_ASSERT(node_resource != NULL);
        node_res_obj->heap_allocated = status;
 }
 
                              struct dev_object **device_obj)
 {
        int status = 0;
-#ifdef CONFIG_TIDSPBRIDGE_DEBUG
-       /* used only for Assertions and debug messages */
-       struct drv_object *pdrv_obj = (struct drv_object *)hdrv_obj;
-#endif
        struct dev_object *dev_obj;
        u32 i;
-       DBC_ASSERT(!(list_empty(&pdrv_obj->dev_list)));
 
        dev_obj = (struct dev_object *)drv_get_first_dev_object();
        for (i = 0; i < index; i++) {
 
 {
        u32 status;
 
-       DBC_ASSERT(vma->vm_start < vma->vm_end);
-
        vma->vm_flags |= VM_RESERVED | VM_IO;
        vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
 
 
        }
        pmgr_obj = drv_datap->mgr_object;
 
-       DBC_ASSERT(pmgr_obj);
        /* Forever loop till we hit failed or no more items in the
         * Enumeration. We will exit the loop other than 0; */
        while (!status) {
                dev_dbg(bridge, "%s: Failed to get MGR Object\n", __func__);
                goto func_end;
        }
-       DBC_ASSERT(pmgr_obj);
        /* Forever loop till we hit no more items in the
         * Enumeration. We will exit the loop other than 0; */
        while (status1 == 0) {
 
                dev_get_cod_mgr(hdev_obj, &cod_mgr);
                if (cod_mgr) {
                        status = cod_get_loader(cod_mgr, &nldr_obj->dbll);
-                       DBC_ASSERT(!status);
                        status = cod_get_base_lib(cod_mgr, &nldr_obj->base_lib);
-                       DBC_ASSERT(!status);
                        status =
                            cod_get_base_name(cod_mgr, sz_zl_file,
                                                        COD_MAXPATHLENGTH);
-                       DBC_ASSERT(!status);
                }
                status = 0;
                /* end lazy status checking */
                status =
                    cod_get_base_name(cod_mgr, sz_zl_file, COD_MAXPATHLENGTH);
                /* lazy check */
-               DBC_ASSERT(!status);
                /* First count number of overlay nodes */
                status =
                    dcd_get_objects(nldr_obj->dcd_mgr, sz_zl_file,
                        root = nldr_node_obj->delete_lib;
                        break;
                default:
-                       DBC_ASSERT(false);
                        break;
                }
        } else {
                                        break;
 
                                default:
-                                       DBC_ASSERT(false);
                                        break;
                                }
                        }
                                        nldr_node_obj->pers_libs = 0;
                                        break;
                                default:
-                                       DBC_ASSERT(false);
                                        break;
                                }
                        } else {
                ret =
                    rmm_free(nldr_obj->rmm, 0, ovly_section->sect_run_addr,
                             ovly_section->size, true);
-               DBC_ASSERT(ret);
                ovly_section = ovly_section->next_sect;
                i++;
        }
 
        if (depth > MAXDEPTH) {
                /* Error */
-               DBC_ASSERT(false);
        }
        root->lib = NULL;
        /* Allocate a buffer for library file name of size DBL_MAXPATHLENGTH */
                    dcd_get_num_dep_libs(nldr_node_obj->nldr_obj->dcd_mgr,
                                         &uuid, &nd_libs, &np_libs, phase);
        }
-       DBC_ASSERT(nd_libs >= np_libs);
        if (!status) {
                if (!(*nldr_node_obj->phase_split))
                        np_libs = 0;
                }
        }
 
-       DBC_ASSERT(i < nldr_obj->ovly_nodes);
 
        if (!po_node) {
                status = -ENOENT;
                break;
 
        default:
-               DBC_ASSERT(false);
                break;
        }
 
                        mem_phase_bit = EXECUTEDATAFLAGBIT;
                        break;
                default:
-                       DBC_ASSERT(false);
                        break;
                }
                if (mem_sect == DBLL_CODE)
        /* Find an appropriate segment based on mem_sect */
        if (segid == NULLID) {
                /* No memory requirements of preferences */
-               DBC_ASSERT(!mem_load_req);
                goto func_cont;
        }
        if (segid <= MAXSEGID) {
-               DBC_ASSERT(segid < nldr_obj->dload_segs);
                /* Attempt to allocate from segid first. */
                rmm_addr_obj->segid = segid;
                status =
                }
        } else {
                /* segid > MAXSEGID ==> Internal or external memory */
-               DBC_ASSERT(segid == MEMINTERNALID || segid == MEMEXTERNALID);
                /*  Check for any internal or external memory segment,
                 *  depending on segid. */
                mem_sect_type |= segid == MEMINTERNALID ?
        struct nldr_object *nldr_obj = nldr_node_obj->nldr_obj;
        u16 i;
 
-       DBC_ASSERT(root != NULL);
 
        /* Unload dependent libraries */
        for (i = 0; i < root->dep_libs; i++)
                }
        }
 
-       DBC_ASSERT(i < nldr_obj->ovly_nodes);
 
        if (!po_node)
                /* TODO: Should we print warning here? */
                other_alloc = po_node->other_sects;
                break;
        default:
-               DBC_ASSERT(false);
                break;
        }
-       DBC_ASSERT(ref_count && (*ref_count > 0));
        if (ref_count && (*ref_count > 0)) {
                *ref_count -= 1;
                if (other_ref) {
-                       DBC_ASSERT(*other_ref > 0);
                        *other_ref -= 1;
                }
        }
                        root = nldr_node->delete_lib;
                        break;
                default:
-                       DBC_ASSERT(false);
                        break;
                }
        } else {
 
 
        status = proc_get_processor_id(pnode->processor, &proc_id);
        if (proc_id != DSP_UNIT) {
-               DBC_ASSERT(NULL);
                goto func_end;
        }
        /*  If segment ID includes MEM_SETVIRTUALSEGID then pbuffer is a
        if (node1_type != NODE_GPP) {
                hnode_mgr = node1->node_mgr;
        } else {
-               DBC_ASSERT(node2 != (struct node_object *)DSP_HGPPNODE);
                hnode_mgr = node2->node_mgr;
        }
 
                        goto out_unlock;
                }
 
-               DBC_ASSERT((node1_type == NODE_GPP) ||
-                               (node2_type == NODE_GPP));
-
                chnl_mode = (node1_type == NODE_GPP) ?
                        CHNL_MODETODSP : CHNL_MODEFROMDSP;
 
                        status = cmm_xlator_free_buf(pnode->xlator, pbuffer);
                }
        } else {
-               DBC_ASSERT(NULL);       /* BUG */
        }
 func_end:
        return status;
                        }
                }
        } else {
-               DBC_ASSERT(dir == DSP_FROMNODE);
                if (index < MAX_OUTPUTS(hnode)) {
                        if (hnode->outputs[index].type == HOSTCONNECT) {
                                *chan_id = hnode->outputs[index].dev_id;
                                                   NODE_GET_PRIORITY(hnode));
        } else {
                /* We should never get here */
-               DBC_ASSERT(false);
        }
 func_cont1:
        /* Update node state. */
                        strm1->connect_type = CONNECTTYPE_GPPOUTPUT;
        } else {
                /* GPP == > NODE */
-               DBC_ASSERT(node2 != (struct node_object *)DSP_HGPPNODE);
                strm_index = node2->num_inputs + node2->num_outputs - 1;
                strm2 = &(node2->stream_connect[strm_index]);
                strm2->cb_struct = sizeof(struct dsp_streamconnect);
                break;
        default:
                /* Should never get here */
-               DBC_ASSERT(false);
                break;
        }
 
                } else {
                        /* Copy device name */
                        len = strlen(pndb_props->ac_name);
-                       DBC_ASSERT(len < MAXDEVNAMELEN);
                        hnode->str_dev_name = kzalloc(len + 1, GFP_KERNEL);
                        if (hnode->str_dev_name == NULL) {
                                status = -ENOMEM;
 
                        if (status) {
                                status = -EPERM;
                        } else {
-                               DBC_ASSERT(p_proc_object->last_coff ==
-                                          NULL);
                                /* Allocate memory for pszLastCoff */
                                p_proc_object->last_coff =
                                                kzalloc((strlen(user_args[0]) +
                if (!hmsg_mgr) {
                        status = msg_create(&hmsg_mgr, p_proc_object->dev_obj,
                                            (msg_onexit) node_on_exit);
-                       DBC_ASSERT(!status);
                        dev_set_msg_mgr(p_proc_object->dev_obj, hmsg_mgr);
                }
        }
                                                        strlen(pargv0) + 1);
                        else
                                status = -ENOMEM;
-                       DBC_ASSERT(brd_state == BRD_LOADED);
                }
        }
 
                if (!((*p_proc_object->intf_fxns->brd_status)
                                (p_proc_object->bridge_context, &brd_state))) {
                        pr_info("%s: dsp in running state\n", __func__);
-                       DBC_ASSERT(brd_state != BRD_HIBERNATION);
                }
        } else {
                pr_err("%s: Failed to start the dsp\n", __func__);
        u32 node_tab_size = 1;
        u32 num_nodes = 0;
        u32 nodes_allocated = 0;
-       int brd_state;
 
        if (!p_proc_object) {
                status = -EFAULT;
                                msg_delete(hmsg_mgr);
                                dev_set_msg_mgr(p_proc_object->dev_obj, NULL);
                        }
-                       if (!((*p_proc_object->
-                             intf_fxns->brd_status) (p_proc_object->
-                                                         bridge_context,
-                                                         &brd_state)))
-                               DBC_ASSERT(brd_state == BRD_STOPPED);
                }
        } else {
                pr_err("%s: Failed to stop the processor\n", __func__);
 {
        int status = -EPERM;
        struct msg_mgr *hmsg_mgr;
-       int brd_state;
 
        /* This is needed only when Device is loaded when it is
         * already 'ACTIVE' */
        if (!((*proc_obj->intf_fxns->brd_monitor)
                          (proc_obj->bridge_context))) {
                status = 0;
-               if (!((*proc_obj->intf_fxns->brd_status)
-                                 (proc_obj->bridge_context, &brd_state)))
-                       DBC_ASSERT(brd_state == BRD_IDLE);
        }
 
        return status;
 
                list_for_each_entry_safe(sect, tmp, &target->ovly_list,
                                list_elem) {
                        if (dsp_addr == sect->addr) {
-                               DBC_ASSERT(size == sect->size);
                                /* Remove from list */
                                list_del(§->list_elem);
                                kfree(sect);
        u32 total_free_size = 0;
        u32 free_blocks = 0;
 
-       DBC_ASSERT(target != NULL);
-
        if ((u32) segid < target->num_segs) {
                head = target->free_list[segid];
 
 
                goto func_end;
 
        for (i = 0; i < num_bufs; i++) {
-               DBC_ASSERT(stream_obj->xlator != NULL);
                (void)cmm_xlator_alloc_buf(stream_obj->xlator, &ap_buffer[i],
                                           usize);
                if (ap_buffer[i] == NULL) {
                status =
                    (*intf_fxns->chnl_get_info) (stream_obj->chnl_obj,
                                                     &chnl_info_obj);
-               DBC_ASSERT(!status);
 
                if (chnl_info_obj.cio_cs > 0 || chnl_info_obj.cio_reqs > 0)
                        status = -EPIPE;
                if (!status) {
                        (void)dev_get_intf_fxns(dev_obj,
                                                &(strm_mgr_obj->intf_fxns));
-                       DBC_ASSERT(strm_mgr_obj->intf_fxns != NULL);
                }
        }
 
 
        if (!status) {
                for (i = 0; i < num_bufs; i++) {
-                       DBC_ASSERT(stream_obj->xlator != NULL);
                        status =
                            cmm_xlator_free_buf(stream_obj->xlator,
                                                ap_buffer[i]);
 
        if (stream_obj->xlator) {
                /* We have a translator */
-               DBC_ASSERT(stream_obj->segment_id > 0);
                cmm_xlator_info(stream_obj->xlator, (u8 **) &virt_base, 0,
                                stream_obj->segment_id, false);
        }
                goto func_cont;
 
        /* No System DMA */
-       DBC_ASSERT(strm_obj->strm_mode != STRMMODE_LDMA);
        /* Get the shared mem mgr for this streams dev object */
        status = dev_get_cmm_mgr(strm_mgr_obj->dev_obj, &hcmm_mgr);
        if (!status) {
                /*Allocate a SM addr translator for this strm. */
                status = cmm_xlator_create(&strm_obj->xlator, hcmm_mgr, NULL);
                if (!status) {
-                       DBC_ASSERT(strm_obj->segment_id > 0);
                        /*  Set translators Virt Addr attributes */
                        status = cmm_xlator_info(strm_obj->xlator,
                                                 (u8 **) &pattr->virt_base,
                                 * strm_mgr_obj->chnl_mgr better be valid or we
                                 * assert here), and then return -EPERM.
                                 */
-                               DBC_ASSERT(status == -ENOSR ||
-                                          status == -ECHRNG ||
-                                          status == -EALREADY ||
-                                          status == -EIO);
                                status = -EPERM;
                        }
                }