IPU: Cleanup variable scope.

Use totalqwc instead of ipu1cycles for adding cycles.
Codacy.
This commit is contained in:
lightningterror 2022-06-24 17:55:24 +02:00
parent c82a927556
commit 7d2209860e
1 changed files with 1 additions and 2 deletions

View File

@ -68,7 +68,6 @@ static __fi int IPU1chain() {
void IPU1dma() void IPU1dma()
{ {
int ipu1cycles = 0;
int totalqwc = 0; int totalqwc = 0;
if(!ipu1ch.chcr.STR || ipu1ch.chcr.MOD == 2) if(!ipu1ch.chcr.STR || ipu1ch.chcr.MOD == 2)
@ -101,7 +100,7 @@ void IPU1dma()
} }
ipu1ch.madr = ptag[1]._u32; ipu1ch.madr = ptag[1]._u32;
ipu1cycles += 1; // Add 1 cycles from the QW read for the tag totalqwc += 1; // Add 1 cycles from the QW read for the tag
if (ipu1ch.chcr.TTE) DevCon.Warning("TTE?"); if (ipu1ch.chcr.TTE) DevCon.Warning("TTE?");