summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2011-07-01 04:59:47 +0000
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2011-07-01 04:59:47 +0000
commit271c79012d7a7f2ab8fe4a75e06decf3c9488c10 (patch)
treef6c33f5874b6ecc17347e76e13e518d5c04aaab2
parent7708d081953fd7541cbcf233904c854a1800780e (diff)
downloadedk2-271c79012d7a7f2ab8fe4a75e06decf3c9488c10.tar.gz
edk2-271c79012d7a7f2ab8fe4a75e06decf3c9488c10.tar.bz2
edk2-271c79012d7a7f2ab8fe4a75e06decf3c9488c10.zip
Fix ICC build error.
Signed-off-by: lzeng14 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11942 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--DuetPkg/SataControllerDxe/SataController.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/DuetPkg/SataControllerDxe/SataController.c b/DuetPkg/SataControllerDxe/SataController.c
index b4974825b2..ea8a067696 100644
--- a/DuetPkg/SataControllerDxe/SataController.c
+++ b/DuetPkg/SataControllerDxe/SataController.c
@@ -456,7 +456,7 @@ SataControllerStart (
// A maximum of 32 ports can be supported. A value of '0h', indicating one port, is the minimum requirement.
//
Data32 = AhciReadReg (PciIo, R_AHCI_CAP);
- SataPrivateData->IdeInit.ChannelCount = (UINT8) (Data32 & B_AHCI_CAP_NPS + 1);
+ SataPrivateData->IdeInit.ChannelCount = (UINT8) ((Data32 & B_AHCI_CAP_NPS) + 1);
SataPrivateData->DeviceCount = AHCI_MAX_DEVICES;
if ((Data32 & B_AHCI_CAP_SPM) == B_AHCI_CAP_SPM) {
SataPrivateData->DeviceCount = AHCI_MULTI_MAX_DEVICES;