summaryrefslogtreecommitdiff
path: root/src/vendorcode/amd/cimx/sb800/SBPOR.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2014-01-30 22:20:01 -0600
committerAaron Durbin <adurbin@google.com>2014-02-11 22:23:15 +0100
commitd907a3402e347633bac09013050a3d290c27d1f8 (patch)
tree1953b397aafc0816d2e1ed332ba06aedee98b88f /src/vendorcode/amd/cimx/sb800/SBPOR.c
parent6ecdb68562989aec1362e3a99f3ed2e0012e1191 (diff)
amd/cimx: fix sb(8|9)00 NULL type redefine
It is inappropriate for chipset code to be redefining types -- especially NULL to a non-pointer type. There's only one non-straight forward change. A condition being checked was '!ptr_type == NULL' (0 as int). That check is actually 'ptr_type != NULL'. Change-Id: Iab5733e5a573baba6fec94e0c955ba4fad72c836 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/5088 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/vendorcode/amd/cimx/sb800/SBPOR.c')
-rw-r--r--src/vendorcode/amd/cimx/sb800/SBPOR.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vendorcode/amd/cimx/sb800/SBPOR.c b/src/vendorcode/amd/cimx/sb800/SBPOR.c
index daf13c719c..752c64e5bb 100644
--- a/src/vendorcode/amd/cimx/sb800/SBPOR.c
+++ b/src/vendorcode/amd/cimx/sb800/SBPOR.c
@@ -150,7 +150,7 @@ sbPowerOnInit (
cimNbSbGen2 = pConfig->NbSbGen2;
cimSataMode = pConfig->SATAMODE.SataModeReg;
// Adding Fast Read Function support
- if (pConfig->BuildParameters.SpiFastReadEnable != NULL ) {
+ if (pConfig->BuildParameters.SpiFastReadEnable != 0 ) {
cimSpiFastReadEnable = (UINT8) pConfig->BuildParameters.SpiFastReadEnable;
} else {
cimSpiFastReadEnable = cimSpiFastReadEnableDefault;