From 5de5522685c260e9643bad14faa22d417e3fc662 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Wed, 14 Jan 2015 00:41:44 +1100 Subject: 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 Reviewed-on: https://review.coreboot.org/8207 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) --- src/vendorcode/amd/agesa/f16kb/Proc/Mem/NB/KB/mnregkb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vendorcode/amd/agesa/f16kb') 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); -- cgit v1.2.3