diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-04-09 11:34:23 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-04-09 11:40:40 -0700 |
commit | a67dcc1e6ef6c0140087ee1cac630ea6ba664a3c (patch) | |
tree | b9ec008e2d00ac5570323523b815c4a66da0cbcd /src/atimach64accel.c | |
parent | 56efa96c5a0cee362342b3cfa63d52f57611d6c2 (diff) |
Variable scope reductions as suggested by cppcheck
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/atimach64accel.c')
-rw-r--r-- | src/atimach64accel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/atimach64accel.c b/src/atimach64accel.c index f40155d..f35af53 100644 --- a/src/atimach64accel.c +++ b/src/atimach64accel.c @@ -886,7 +886,6 @@ ATIMach64SubsequentColorExpandScanline ATIPtr pATI = ATIPTR(pScreenInfo); CARD32 *pBitmapData = pATI->ExpansionBitmapScanlinePtr[iBuffer]; int w = pATI->ExpansionBitmapWidth; - int nDWord; ATIDRISync(pScreenInfo); @@ -896,7 +895,7 @@ ATIMach64SubsequentColorExpandScanline * Transfers are done in chunks of up to 64 bytes in length (32 on * earlier controllers). */ - nDWord = w; + int nDWord = w; if (nDWord > pATI->nHostFIFOEntries) nDWord = pATI->nHostFIFOEntries; |