From d80e8c459ab29d198a4718bec9fd77d3fa2db1ee Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Tue, 22 Sep 2015 11:18:09 +0000 Subject: DuetPkg: SataControllerDxe: fix typo in "DisqulifiedModes" Cc: Alexander Graf Cc: Reza Jelveh Cc: Jordan Justen Cc: Ruiyu Ni Cc: Hannes Reinecke Cc: Gabriel L. Somlo Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Ruiyu Ni Tested-by: Gabriel Somlo Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18524 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/SataControllerDxe/SataController.c | 22 +++++++++++----------- DuetPkg/SataControllerDxe/SataController.h | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'DuetPkg') diff --git a/DuetPkg/SataControllerDxe/SataController.c b/DuetPkg/SataControllerDxe/SataController.c index 1807c88224..e78915ad31 100644 --- a/DuetPkg/SataControllerDxe/SataController.c +++ b/DuetPkg/SataControllerDxe/SataController.c @@ -464,8 +464,8 @@ SataControllerStart ( } ChannelDeviceCount = (UINTN) (SataPrivateData->IdeInit.ChannelCount) * (UINTN) (SataPrivateData->DeviceCount); - SataPrivateData->DisqulifiedModes = AllocateZeroPool ((sizeof (EFI_ATA_COLLECTIVE_MODE)) * ChannelDeviceCount); - if (SataPrivateData->DisqulifiedModes == NULL) { + SataPrivateData->DisqualifiedModes = AllocateZeroPool ((sizeof (EFI_ATA_COLLECTIVE_MODE)) * ChannelDeviceCount); + if (SataPrivateData->DisqualifiedModes == NULL) { Status = EFI_OUT_OF_RESOURCES; goto Done; } @@ -502,8 +502,8 @@ Done: Controller ); if (SataPrivateData != NULL) { - if (SataPrivateData->DisqulifiedModes != NULL) { - FreePool (SataPrivateData->DisqulifiedModes); + if (SataPrivateData->DisqualifiedModes != NULL) { + FreePool (SataPrivateData->DisqualifiedModes); } if (SataPrivateData->IdentifyData != NULL) { FreePool (SataPrivateData->IdentifyData); @@ -577,8 +577,8 @@ SataControllerStop ( } if (SataPrivateData != NULL) { - if (SataPrivateData->DisqulifiedModes != NULL) { - FreePool (SataPrivateData->DisqulifiedModes); + if (SataPrivateData->DisqualifiedModes != NULL) { + FreePool (SataPrivateData->DisqualifiedModes); } if (SataPrivateData->IdentifyData != NULL) { FreePool (SataPrivateData->IdentifyData); @@ -833,7 +833,7 @@ IdeInitDisqualifyMode ( // if a mode is not supported, the modes higher than it is also not supported. // CopyMem ( - &(SataPrivateData->DisqulifiedModes[Channel * Device]), + &(SataPrivateData->DisqualifiedModes[Channel * Device]), BadModes, sizeof (EFI_ATA_COLLECTIVE_MODE) ); @@ -907,7 +907,7 @@ IdeInitCalculateMode ( EFI_SATA_CONTROLLER_PRIVATE_DATA *SataPrivateData; EFI_IDENTIFY_DATA *IdentifyData; BOOLEAN IdentifyValid; - EFI_ATA_COLLECTIVE_MODE *DisqulifiedModes; + EFI_ATA_COLLECTIVE_MODE *DisqualifiedModes; UINT16 SelectedMode; EFI_STATUS Status; @@ -926,7 +926,7 @@ IdeInitCalculateMode ( IdentifyData = &(SataPrivateData->IdentifyData[Channel * Device]); IdentifyValid = SataPrivateData->IdentifyValid[Channel * Device]; - DisqulifiedModes = &(SataPrivateData->DisqulifiedModes[Channel * Device]); + DisqualifiedModes = &(SataPrivateData->DisqualifiedModes[Channel * Device]); // // Make sure we've got the valid identify data of the device from SubmitData() @@ -938,7 +938,7 @@ IdeInitCalculateMode ( Status = CalculateBestPioMode ( IdentifyData, - (DisqulifiedModes->PioMode.Valid ? ((UINT16 *) &(DisqulifiedModes->PioMode.Mode)) : NULL), + (DisqualifiedModes->PioMode.Valid ? ((UINT16 *) &(DisqualifiedModes->PioMode.Mode)) : NULL), &SelectedMode ); if (!EFI_ERROR (Status)) { @@ -952,7 +952,7 @@ IdeInitCalculateMode ( Status = CalculateBestUdmaMode ( IdentifyData, - (DisqulifiedModes->UdmaMode.Valid ? ((UINT16 *) &(DisqulifiedModes->UdmaMode.Mode)) : NULL), + (DisqualifiedModes->UdmaMode.Valid ? ((UINT16 *) &(DisqualifiedModes->UdmaMode.Mode)) : NULL), &SelectedMode ); diff --git a/DuetPkg/SataControllerDxe/SataController.h b/DuetPkg/SataControllerDxe/SataController.h index d2a929f3b4..a6c6c168df 100644 --- a/DuetPkg/SataControllerDxe/SataController.h +++ b/DuetPkg/SataControllerDxe/SataController.h @@ -95,7 +95,7 @@ typedef struct _EFI_SATA_CONTROLLER_PRIVATE_DATA { // From ATA/ATAPI spec, if a mode is not supported, // the modes higher than it is also not supported // - EFI_ATA_COLLECTIVE_MODE *DisqulifiedModes; + EFI_ATA_COLLECTIVE_MODE *DisqualifiedModes; // // A copy of EFI_IDENTIFY_DATA data for each attached SATA device and its flag -- cgit v1.2.3