vendorcode/amd/agesa: unsigned enum is strictly positive
The typedef'ed BIT_FIELD_NAME enum is type unsigned. The parameter 'FieldName' is decleared with type BIT_FIELD_NAME and thus the redudant comparison of unsigned enum expression >= 0 is always true. BIT_FIELD_NAME is declared in vendorcode/amd/agesa/f14/Proc/Mem/mm.h Change-Id: Id2f03596c44b68e861e939f3528256d4b08c45ce Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/5757 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc.jones@se-eng.com>
This commit is contained in:
parent
8a661ed788
commit
0deb355d0e
|
@ -187,7 +187,7 @@ MemNCmnGetSetFieldON (
|
||||||
UINT8 Instance;
|
UINT8 Instance;
|
||||||
|
|
||||||
Value = 0;
|
Value = 0;
|
||||||
if ((FieldName < BFEndOfList) && (FieldName >= 0)) {
|
if (FieldName < BFEndOfList) {
|
||||||
Address = NBPtr->NBRegTable[FieldName];
|
Address = NBPtr->NBRegTable[FieldName];
|
||||||
if (Address) {
|
if (Address) {
|
||||||
Lowbit = TSEFO_END (Address);
|
Lowbit = TSEFO_END (Address);
|
||||||
|
|
Loading…
Reference in New Issue