diff --git a/pcsx2/ps2/pgif.cpp b/pcsx2/ps2/pgif.cpp index b49dce7d4c..442e081ce4 100644 --- a/pcsx2/ps2/pgif.cpp +++ b/pcsx2/ps2/pgif.cpp @@ -234,8 +234,7 @@ void handleGp1Command(u32 cmd) { //Check GP1() command and configure PGIF accordingly. //Commands 0x00 - 0x01 are partially handled in ps1drv, we should just clear fifo. - u32 cmdNr = ((cmd >> 24) & 0xFF) & 0x3F; - u32 param = 0; + const u32 cmdNr = ((cmd >> 24) & 0xFF) & 0x3F; switch (cmdNr) { case 0: @@ -613,7 +612,7 @@ void drainPgpuDmaNrToGpu() void drainPgpuDmaNrToIop() { - u32 data; + u32 data = 0; if (!dma.state.to_iop_active || rb_gp0.count <= 0) return; diff --git a/pcsx2/ps2/pgif.h b/pcsx2/ps2/pgif.h index f04e220578..52d9be9cda 100644 --- a/pcsx2/ps2/pgif.h +++ b/pcsx2/ps2/pgif.h @@ -119,15 +119,6 @@ struct PGPUregisters }; static PGPUregisters& pgpu = (PGPUregisters&)eeHw[0xf300]; -static struct Regs_t -{ - struct pgifRegs_t - { - //PGifIfStat - u32 ctrl; - } pgif; -} hwRegs; - //Internal dma flags: static struct dma_t { @@ -260,7 +251,6 @@ struct ringBuf_t #define pgpuDmaTadr HW_DMA2_TADR void pgifInit(void); -void pgifReset(void); extern void psxGPUw(int, u32); extern u32 psxGPUr(int);