summaryrefslogtreecommitdiff
path: root/DuetPkg/SataControllerDxe
diff options
context:
space:
mode:
authorlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2011-07-01 03:47:26 +0000
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2011-07-01 03:47:26 +0000
commit61a02ac974be70cd5759a17558ef100fce4620a1 (patch)
tree9b0a7c9569fff527c29384ad8b70644a426ce6b0 /DuetPkg/SataControllerDxe
parent51a0c5f28c213b926aeb9bcfa532ea9db5a29a8f (diff)
downloadedk2-platforms-61a02ac974be70cd5759a17558ef100fce4620a1.tar.xz
Fix ICC build error.
Signed-off-by: lzeng14 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11939 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/SataControllerDxe')
-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 f00abcebb9..0fdc1dea79 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;