From: Shyam Saini Date: Sat, 24 Dec 2016 10:51:07 +0000 (+0530) Subject: scsi: lpfc: Replace BUG() with BUG_ON() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e01ea5e2a3f2a127ace8b671a830a5c789f07510;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git scsi: lpfc: Replace BUG() with BUG_ON() Replace BUG() with BUG_ON() using coccinelle. Signed-off-by: Shyam Saini Acked-by: James Smart Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 27f0cbb9b278..ede14f1810d2 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c @@ -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: