Panasonic CD-ROM: Fix the only warning.

This commit is contained in:
OBattler
2025-07-27 17:49:00 +02:00
parent 07bbf62563
commit 0f8ec8d0e7

View File

@@ -255,8 +255,7 @@ mke_cdrom_status(cdrom_t *dev, mke_t *mke)
void void
mke_read_multisess(void) mke_read_multisess(void)
{ {
int len = cdrom_read_toc(mke.cdrom_dev, temp_buf, CD_TOC_SESSION, 0, 1, 65536); if ((temp_buf[9] != 0) || (temp_buf[10] != 0) || (temp_buf[11] != 0)) {
if (temp_buf[9] != 0 || temp_buf[10] != 0 || temp_buf[11] != 0) {
/* Multi-session disc. */ /* Multi-session disc. */
fifo8_push(&mke.info_fifo, 0x80); fifo8_push(&mke.info_fifo, 0x80);
fifo8_push(&mke.info_fifo, temp_buf[9]); fifo8_push(&mke.info_fifo, temp_buf[9]);