diff options
author | Kevin Brace <kevinbrace@gmx.com> | 2019-07-12 14:29:15 -0700 |
---|---|---|
committer | Kevin Brace <kevinbrace@gmx.com> | 2019-07-12 14:29:15 -0700 |
commit | 8eaf7ab409504f29015c06ad0e57323cde12636a (patch) | |
tree | 97eb02063389fdf2dbd15c1f96ffbd657ea4c328 /src | |
parent | 62073a5eddedd7cb8bf127f26e2ce1acf44c43cb (diff) |
Remove uninitialized variable warning from via_display.c
In particular, removing it from viaIGA1SetFBStartingAddress().
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/via_display.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/via_display.c b/src/via_display.c index 4325059..f35bc62 100644 --- a/src/via_display.c +++ b/src/via_display.c @@ -1226,23 +1226,19 @@ viaIGA1SetFBStartingAddress(xf86CrtcPtr crtc, int x, int y) #ifdef HAVE_DEBUG cr0d = hwp->readCrtc(hwp, 0x0D); - cr0c = hwp->readCrtc(hwp, 0x0C); - cr34 = hwp->readCrtc(hwp, 0x34); - if (!(pVia->Chipset == VIA_CLE266 && CLE266_REV_IS_AX(pVia->ChipRev))) { - cr48 = hwp->readCrtc(hwp, 0x48); - } - DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "CR0D: 0x%02X\n", cr0d)); + cr0c = hwp->readCrtc(hwp, 0x0C); DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "CR0C: 0x%02X\n", cr0c)); + cr34 = hwp->readCrtc(hwp, 0x34); DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "CR34: 0x%02X\n", cr34)); if (!(pVia->Chipset == VIA_CLE266 && CLE266_REV_IS_AX(pVia->ChipRev))) { + cr48 = hwp->readCrtc(hwp, 0x48); DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "CR48: 0x%02X\n", cr48)); } - #endif DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, |