···113113 /*114114 * Use count cannot be non-zero and chip in uninitialized state.115115 */116116- bfa_assert(ioc_fwstate != BFI_IOC_UNINIT);116116+ WARN_ON(ioc_fwstate == BFI_IOC_UNINIT);117117118118 /*119119 * Check if another driver with a different firmware is active···158158 */159159 bfa_ioc_sem_get(ioc->ioc_regs.ioc_usage_sem_reg);160160 usecnt = readl(ioc->ioc_regs.ioc_usage_reg);161161- bfa_assert(usecnt > 0);161161+ WARN_ON(usecnt <= 0);162162163163 usecnt--;164164 writel(usecnt, ioc->ioc_regs.ioc_usage_reg);
···449449 struct bfad_im_s *im = itnim_drv->im;450450451451 /* online to free state transtion should not happen */452452- bfa_assert(itnim_drv->state != ITNIM_STATE_ONLINE);452452+ WARN_ON(itnim_drv->state == ITNIM_STATE_ONLINE);453453454454 itnim_drv->queue_work = 1;455455 /* offline request is not yet done, use the same request to free */···664664 }665665666666 /* the itnim_mapped_list must be empty at this time */667667- bfa_assert(list_empty(&im_port->itnim_mapped_list));667667+ WARN_ON(!list_empty(&im_port->itnim_mapped_list));668668669669 spin_unlock_irqrestore(&bfad->bfad_lock, flags);670670}···11111111 kfree(itnim);11121112 break;11131113 default:11141114- bfa_assert(0);11141114+ WARN_ON(1);11151115 break;11161116 }11171117