From f14535b389312d5592900a1599692b949f0f7234 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 28 Nov 2022 15:17:16 +0100 Subject: [PATCH] There's no need for MC6 readout to be a special case, given that it neatly fits in with the prceding 4 cases. --- src/sound/snd_optimc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sound/snd_optimc.c b/src/sound/snd_optimc.c index d452301db..b54174ce0 100644 --- a/src/sound/snd_optimc.c +++ b/src/sound/snd_optimc.c @@ -312,10 +312,8 @@ optimc_reg_read(uint16_t addr, void *p) case 1: /* MC2 */ case 3: /* MC4 */ case 4: /* MC5 */ - temp = optimc->regs[addr - 0xF8D]; - break; case 5: /* MC6 */ - temp = optimc->regs[5]; + temp = optimc->regs[addr - 0xF8D]; break; case 2: /* MC3 */ temp = (optimc->regs[2] & ~0x3) | 0x2;