mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
Add /* FALLTHROUGH */
Remove break after return Found by: FlexeLint
This commit is contained in:
parent
25371920a0
commit
d2f30d92a7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115555
@ -248,22 +248,29 @@ bt_free_softc(device_t dev)
|
||||
}
|
||||
case 7:
|
||||
bus_dmamap_unload(bt->ccb_dmat, bt->ccb_dmamap);
|
||||
/* FALLTHROUGH */
|
||||
case 6:
|
||||
bus_dmamem_free(bt->ccb_dmat, bt->bt_ccb_array,
|
||||
bt->ccb_dmamap);
|
||||
bus_dmamap_destroy(bt->ccb_dmat, bt->ccb_dmamap);
|
||||
/* FALLTHROUGH */
|
||||
case 5:
|
||||
bus_dma_tag_destroy(bt->ccb_dmat);
|
||||
/* FALLTHROUGH */
|
||||
case 4:
|
||||
bus_dmamap_unload(bt->mailbox_dmat, bt->mailbox_dmamap);
|
||||
/* FALLTHROUGH */
|
||||
case 3:
|
||||
bus_dmamem_free(bt->mailbox_dmat, bt->in_boxes,
|
||||
bt->mailbox_dmamap);
|
||||
bus_dmamap_destroy(bt->mailbox_dmat, bt->mailbox_dmamap);
|
||||
/* FALLTHROUGH */
|
||||
case 2:
|
||||
bus_dma_tag_destroy(bt->buffer_dmat);
|
||||
/* FALLTHROUGH */
|
||||
case 1:
|
||||
bus_dma_tag_destroy(bt->mailbox_dmat);
|
||||
/* FALLTHROUGH */
|
||||
case 0:
|
||||
break;
|
||||
}
|
||||
|
@ -162,25 +162,18 @@ bt_match(eisa_id_t type)
|
||||
switch(type) {
|
||||
case EISA_DEVICE_ID_BUSLOGIC_74X_B:
|
||||
return ("Buslogic 74xB SCSI host adapter");
|
||||
break;
|
||||
case EISA_DEVICE_ID_BUSLOGIC_74X_C:
|
||||
return ("Buslogic 74xC SCSI host adapter");
|
||||
break;
|
||||
case EISA_DEVICE_ID_SDC3222B:
|
||||
return ("Storage Dimensions SDC3222B SCSI host adapter");
|
||||
break;
|
||||
case EISA_DEVICE_ID_SDC3222F:
|
||||
return ("Storage Dimensions SDC3222F SCSI host adapter");
|
||||
break;
|
||||
case EISA_DEVICE_ID_SDC3222WS:
|
||||
return ("Storage Dimensions SDC3222WS SCSI host adapter");
|
||||
break;
|
||||
case EISA_DEVICE_ID_SDC3222WB:
|
||||
return ("Storage Dimensions SDC3222WB SCSI host adapter");
|
||||
break;
|
||||
case EISA_DEVICE_ID_AMI_4801:
|
||||
return ("AMI Series 48 SCSI host adapter");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user