Clearly marked two deliberate fallthroughs in disk/zip.c and scsi/scsi_cdrom.c.

This commit is contained in:
OBattler
2018-10-26 05:07:03 +02:00
parent 96b894f7b8
commit ef0b67d48c
2 changed files with 4 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
* Implementation of the Iomega ZIP drive with SCSI(-like)
* commands, for both ATAPI and SCSI usage.
*
* Version: @(#)zip.c 1.0.30 2018/10/26
* Version: @(#)zip.c 1.0.31 2018/10/26
*
* Author: Miran Grca, <mgrca8@gmail.com>
*
@@ -900,6 +900,7 @@ zip_update_request_length(zip_t *dev, int len, int block_len)
break;
}
}
/*FALLTHROUGH*/
default:
dev->packet_len = len;
break;

View File

@@ -9,7 +9,7 @@
* Implementation of the CD-ROM drive with SCSI(-like)
* commands, for both ATAPI and SCSI usage.
*
* Version: @(#)scsi_cdrom.c 1.0.58 2018/10/26
* Version: @(#)scsi_cdrom.c 1.0.59 2018/10/26
*
* Author: Miran Grca, <mgrca8@gmail.com>
*
@@ -651,6 +651,7 @@ scsi_cdrom_update_request_length(scsi_cdrom_t *dev, int len, int block_len)
break;
}
}
/*FALLTHROUGH*/
default:
dev->packet_len = len;
break;