mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
Remove unnecessary volatile for local Index variable.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10608 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
9053bc517e
commit
97c0d02fd6
@ -142,7 +142,7 @@ GlueMakeTable (
|
|||||||
UINT16 Start[18];
|
UINT16 Start[18];
|
||||||
UINT16 *Pointer;
|
UINT16 *Pointer;
|
||||||
UINT16 Index3;
|
UINT16 Index3;
|
||||||
volatile UINT16 Index;
|
UINT16 Index;
|
||||||
UINT16 Len;
|
UINT16 Len;
|
||||||
UINT16 Char;
|
UINT16 Char;
|
||||||
UINT16 JuBits;
|
UINT16 JuBits;
|
||||||
@ -155,7 +155,7 @@ GlueMakeTable (
|
|||||||
//
|
//
|
||||||
// TableBits should not be greater than 16.
|
// TableBits should not be greater than 16.
|
||||||
//
|
//
|
||||||
if (TableBits > 16) {
|
if (TableBits >= (sizeof (Count)/sizeof (UINT16))) {
|
||||||
return (UINT16) BAD_TABLE;
|
return (UINT16) BAD_TABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -170,7 +170,7 @@ GlueMakeTable (
|
|||||||
//
|
//
|
||||||
// Count array index should not be greater than or equal to its size.
|
// Count array index should not be greater than or equal to its size.
|
||||||
//
|
//
|
||||||
if (BitLen[Index] <= 16) {
|
if (BitLen[Index] < (sizeof (Count)/sizeof (UINT16))) {
|
||||||
Count[BitLen[Index]]++;
|
Count[BitLen[Index]]++;
|
||||||
} else {
|
} else {
|
||||||
return (UINT16) BAD_TABLE;
|
return (UINT16) BAD_TABLE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user