aboutsummaryrefslogtreecommitdiff
path: root/src/vendorcode/amd/agesa/f16kb
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2015-01-14 00:41:44 +1100
committerMartin Roth <martinroth@google.com>2016-04-16 02:03:53 +0200
commit5de5522685c260e9643bad14faa22d417e3fc662 (patch)
tree3619af315b5dd780c4ba0fbb692988159c66efe8 /src/vendorcode/amd/agesa/f16kb
parent91d94b090799b5be5eafb5a82e247d928e982698 (diff)
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/f16kb')
-rw-r--r--src/vendorcode/amd/agesa/f16kb/Proc/Mem/NB/KB/mnregkb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vendorcode/amd/agesa/f16kb/Proc/Mem/NB/KB/mnregkb.c b/src/vendorcode/amd/agesa/f16kb/Proc/Mem/NB/KB/mnregkb.c
index 724af40213..df810d0df1 100644
--- a/src/vendorcode/amd/agesa/f16kb/Proc/Mem/NB/KB/mnregkb.c
+++ b/src/vendorcode/amd/agesa/f16kb/Proc/Mem/NB/KB/mnregkb.c
@@ -169,7 +169,7 @@ MemNCmnGetSetFieldKB (
if (FieldName == BFDctAccessDone) {
// No need to poll DctAccessDone for KB due to enhancement in phy
Value = 1;
- } else if ((FieldName < BFEndOfList) && (FieldName >= 0)) {
+ } else if (FieldName < BFEndOfList) {
Address = NBPtr->NBRegTable[FieldName];
if (Address) {
Lowbit = TSEFO_END (Address);