Skip to content

Commit 8bfb89f

Browse files
Jun Chenmartinkpetersen
authored andcommitted
scsi: lpfc: Silence an incorrect device output
In lpfc_sli4_pci_mem_unset(), case LPFC_SLI_INTF_IF_TYPE_1 does not have a break statement, resulting in an incorrect device output. Fix this by adding a break statement before the default option. Signed-off-by: Jun Chen <jun_c@hust.edu.cn> Link: https://lore.kernel.org/r/20230410023724.3209455-1-jun_c@hust.edu.cn Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn> Reviewed-by: Justin Tee <justin.tee@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 2acc635 commit 8bfb89f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/scsi/lpfc/lpfc_init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12107,6 +12107,7 @@ lpfc_sli4_pci_mem_unset(struct lpfc_hba *phba)
1210712107
iounmap(phba->sli4_hba.dpp_regs_memmap_p);
1210812108
break;
1210912109
case LPFC_SLI_INTF_IF_TYPE_1:
12110+
break;
1211012111
default:
1211112112
dev_printk(KERN_ERR, &phba->pcidev->dev,
1211212113
"FATAL - unsupported SLI4 interface type - %d\n",

0 commit comments

Comments
 (0)