IPU: Cleanup variable scope.

Use totalqwc instead of ipu1cycles for adding cycles.
Codacy.
This commit is contained in:
lightningterror committed 2022-06-24 23:32:30 +02:00
1 parent c82a927556
commit 7d2209860e
1 file changed
+1 -2
+1 -2
View File
@@ -68,7 +68,6 @@ static __fi int IPU1chain() {
void IPU1dma()
{
int ipu1cycles = 0;
int totalqwc = 0;
if(!ipu1ch.chcr.STR || ipu1ch.chcr.MOD == 2)
@@ -101,7 +100,7 @@ void IPU1dma()
}
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?");