summaryrefslogtreecommitdiff
path: root/src/vendorcode/amd/agesa/f14
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-06-10 13:47:56 +0200
committerNico Huber <nico.h@gmx.de>2019-06-15 16:31:01 +0000
commitd844431af09aafd65656f77b699c737966b30086 (patch)
tree85994ff365a99ff56d38adfab1a8295173083cec /src/vendorcode/amd/agesa/f14
parente94335e9fd00ee5c707eb927922ef09b9487c5d6 (diff)
downloadcoreboot-d844431af09aafd65656f77b699c737966b30086.tar.xz
vendorcode/agesa: Fix check for valid PhyLane
Found using GCC with flag -Wlogical-op Change-Id: Ia04ac5b1d0a4434c0ab2ca583b9b03dbfd0ffd41 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33362 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/vendorcode/amd/agesa/f14')
-rw-r--r--src/vendorcode/amd/agesa/f14/Proc/GNB/Modules/GnbPcieConfig/PcieConfigLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vendorcode/amd/agesa/f14/Proc/GNB/Modules/GnbPcieConfig/PcieConfigLib.c b/src/vendorcode/amd/agesa/f14/Proc/GNB/Modules/GnbPcieConfig/PcieConfigLib.c
index 788c0b779a..dae9899683 100644
--- a/src/vendorcode/amd/agesa/f14/Proc/GNB/Modules/GnbPcieConfig/PcieConfigLib.c
+++ b/src/vendorcode/amd/agesa/f14/Proc/GNB/Modules/GnbPcieConfig/PcieConfigLib.c
@@ -178,7 +178,7 @@ PcieConfigGetNumberOfPhyLane (
IN PCIe_ENGINE_CONFIG *Engine
)
{
- if (Engine->EngineData.StartLane >= UNUSED_LANE_ID || Engine->EngineData.StartLane >= UNUSED_LANE_ID) {
+ if (Engine->EngineData.StartLane >= UNUSED_LANE_ID || Engine->EngineData.EndLane >= UNUSED_LANE_ID) {
return 0;
}
if (Engine->EngineData.StartLane > Engine->EngineData.EndLane) {