Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e01ea5e2 authored by Shyam Saini's avatar Shyam Saini Committed by Martin K. Petersen
Browse files

scsi: lpfc: Replace BUG() with BUG_ON()



Replace BUG() with BUG_ON() using coccinelle.

Signed-off-by: default avatarShyam Saini <mayhs11saini@gmail.com>
Acked-by: default avatarJames Smart <james.smart@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 2c0f83f3
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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: