diff options
author | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2015-01-14 00:41:44 +1100 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-04-16 02:03:53 +0200 |
commit | 5de5522685c260e9643bad14faa22d417e3fc662 (patch) | |
tree | 3619af315b5dd780c4ba0fbb692988159c66efe8 /src/vendorcode/amd/agesa/f12/Proc/Mem/NB/DA/mnregda.c | |
parent | 91d94b090799b5be5eafb5a82e247d928e982698 (diff) | |
download | coreboot-5de5522685c260e9643bad14faa22d417e3fc662.tar.xz |
vendorcode/amd/agesa: Fix tautological compare
An unsigned enum expression is always strictly positive;
Comparison with '>= 0' is a tautology, hence remove it.
Change-Id: I910d672f8a27d278c2a2fe1e4f39fc61f2c5dbc5
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: https://review.coreboot.org/8207
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/vendorcode/amd/agesa/f12/Proc/Mem/NB/DA/mnregda.c')
-rw-r--r-- | src/vendorcode/amd/agesa/f12/Proc/Mem/NB/DA/mnregda.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vendorcode/amd/agesa/f12/Proc/Mem/NB/DA/mnregda.c b/src/vendorcode/amd/agesa/f12/Proc/Mem/NB/DA/mnregda.c index 51cbac71c1..7d5b684ada 100644 --- a/src/vendorcode/amd/agesa/f12/Proc/Mem/NB/DA/mnregda.c +++ b/src/vendorcode/amd/agesa/f12/Proc/Mem/NB/DA/mnregda.c @@ -157,7 +157,7 @@ MemNCmnGetSetFieldDA ( UINT32 Mask; Value = 0; - if ((FieldName < BFEndOfList) && (FieldName >= 0)) { + if (FieldName < BFEndOfList) { Address = NBPtr->NBRegTable[FieldName]; if (Address) { Lowbit = TSEFO_END (Address); |