diff --git a/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Atapi.c b/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Atapi.c index 9c1c3d9577..13375f0fbc 100644 --- a/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Atapi.c +++ b/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Atapi.c @@ -1058,7 +1058,7 @@ AtapiReadCapacity ( (Data.LastLba1 << 8) | Data.LastLba0; - IdeDev->BlkIo.Media->MediaPresent = TRUE; + IdeDev->BlkIo.Media->MediaPresent = TRUE; IdeDev->BlkIo.Media->ReadOnly = TRUE; diff --git a/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ide.c b/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ide.c index 196f1bd01c..50108d6c9d 100644 --- a/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ide.c +++ b/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ide.c @@ -698,11 +698,8 @@ DiscoverIdeDevice ( /** This interface is used to initialize all state data related to the detection of one channel. - - @retval EFI_SUCCESS Completed Successfully. - **/ -EFI_STATUS +VOID InitializeIDEChannelData ( VOID ) @@ -712,7 +709,6 @@ InitializeIDEChannelData ( MasterDeviceType = 0xff; SlaveDeviceExist = FALSE; SlaveDeviceType = 0xff; - return EFI_SUCCESS; } /** This function is used to poll for the DRQ bit clear in the Status diff --git a/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ide.h b/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ide.h index 5bcca6507a..0b637e00f9 100644 --- a/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ide.h +++ b/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ide.h @@ -201,10 +201,8 @@ DiscoverIdeDevice ( This interface is used to initialize all state data related to the detection of one channel. - @retval EFI_SUCCESS Completed successfully. - **/ -EFI_STATUS +VOID InitializeIDEChannelData ( VOID );