SCSI CD-ROM: Fix a warning.

This commit is contained in:
OBattler
2025-03-17 20:59:18 +01:00
parent d8f3f4753d
commit 48c294a13b

View File

@@ -1096,8 +1096,10 @@ scsi_cdrom_read_blocks(scsi_cdrom_t *dev)
int msf = 0;
int type = dev->sector_type;
int flags = dev->sector_flags;
#ifdef ENABLE_SCSI_CDROM_LOG
int num = (dev->drv->bus_type == CDROM_BUS_SCSI) ?
dev->requested_blocks : 1;
#endif
switch (dev->current_cdb[0]) {
case GPCMD_READ_CD_MSF_OLD: