forked from luck/tmp_suning_uos_patched
scsi: lpfc: Replace BUG() with BUG_ON()
Replace BUG() with BUG_ON() using coccinelle. Signed-off-by: Shyam Saini <mayhs11saini@gmail.com> Acked-by: James Smart <james.smart@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
2c0f83f328
commit
e01ea5e2a3
@ -8855,8 +8855,7 @@ lpfc_cmpl_fabric_iocb(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
|
||||
{
|
||||
struct ls_rjt stat;
|
||||
|
||||
if ((cmdiocb->iocb_flag & LPFC_IO_FABRIC) != LPFC_IO_FABRIC)
|
||||
BUG();
|
||||
BUG_ON((cmdiocb->iocb_flag & LPFC_IO_FABRIC) != LPFC_IO_FABRIC);
|
||||
|
||||
switch (rspiocb->iocb.ulpStatus) {
|
||||
case IOSTAT_NPORT_RJT:
|
||||
|
Loading…
Reference in New Issue
Block a user