mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/Sd: Not explicitly compare BOOLEAN type with TRUE/FALSE
It's coding style update to follow EDKII coding style doc. Cc: Qiu Shumin <shumin.qiu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Shumin Qiu <shumin.qiu@intel.com>
This commit is contained in:
parent
3011b7fb17
commit
e26575f79b
|
@ -162,7 +162,7 @@ ProcessAsyncTaskList (
|
||||||
Link = GetFirstNode (&Private->Queue);
|
Link = GetFirstNode (&Private->Queue);
|
||||||
if (!IsNull (&Private->Queue, Link)) {
|
if (!IsNull (&Private->Queue, Link)) {
|
||||||
Trb = SD_MMC_HC_TRB_FROM_THIS (Link);
|
Trb = SD_MMC_HC_TRB_FROM_THIS (Link);
|
||||||
if (Private->Slot[Trb->Slot].MediaPresent == FALSE) {
|
if (!Private->Slot[Trb->Slot].MediaPresent) {
|
||||||
Status = EFI_NO_MEDIA;
|
Status = EFI_NO_MEDIA;
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
|
@ -244,7 +244,7 @@ SdMmcPciHcEnumerateDevice (
|
||||||
for (Slot = 0; Slot < SD_MMC_HC_MAX_SLOT; Slot++) {
|
for (Slot = 0; Slot < SD_MMC_HC_MAX_SLOT; Slot++) {
|
||||||
if ((Private->Slot[Slot].Enable) && (Private->Slot[Slot].SlotType == RemovableSlot)) {
|
if ((Private->Slot[Slot].Enable) && (Private->Slot[Slot].SlotType == RemovableSlot)) {
|
||||||
Status = SdMmcHcCardDetect (Private->PciIo, Slot, &MediaPresent);
|
Status = SdMmcHcCardDetect (Private->PciIo, Slot, &MediaPresent);
|
||||||
if ((Status == EFI_MEDIA_CHANGED) && (MediaPresent == FALSE)) {
|
if ((Status == EFI_MEDIA_CHANGED) && !MediaPresent) {
|
||||||
DEBUG ((EFI_D_INFO, "SdMmcPciHcEnumerateDevice: device disconnected at slot %d of pci %p\n", Slot, Private->PciIo));
|
DEBUG ((EFI_D_INFO, "SdMmcPciHcEnumerateDevice: device disconnected at slot %d of pci %p\n", Slot, Private->PciIo));
|
||||||
Private->Slot[Slot].MediaPresent = FALSE;
|
Private->Slot[Slot].MediaPresent = FALSE;
|
||||||
//
|
//
|
||||||
|
@ -272,7 +272,7 @@ SdMmcPciHcEnumerateDevice (
|
||||||
&Private->PassThru
|
&Private->PassThru
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ((Status == EFI_MEDIA_CHANGED) && (MediaPresent == TRUE)) {
|
if ((Status == EFI_MEDIA_CHANGED) && MediaPresent) {
|
||||||
DEBUG ((EFI_D_INFO, "SdMmcPciHcEnumerateDevice: device connected at slot %d of pci %p\n", Slot, Private->PciIo));
|
DEBUG ((EFI_D_INFO, "SdMmcPciHcEnumerateDevice: device connected at slot %d of pci %p\n", Slot, Private->PciIo));
|
||||||
//
|
//
|
||||||
// Reset the specified slot of the SD/MMC Pci Host Controller
|
// Reset the specified slot of the SD/MMC Pci Host Controller
|
||||||
|
@ -622,7 +622,7 @@ SdMmcPciHcDriverBindingStart (
|
||||||
Status = SdMmcHcCardDetect (PciIo, Slot, &MediaPresent);
|
Status = SdMmcHcCardDetect (PciIo, Slot, &MediaPresent);
|
||||||
if (EFI_ERROR (Status) && (Status != EFI_MEDIA_CHANGED)) {
|
if (EFI_ERROR (Status) && (Status != EFI_MEDIA_CHANGED)) {
|
||||||
continue;
|
continue;
|
||||||
} else if (MediaPresent == FALSE) {
|
} else if (!MediaPresent) {
|
||||||
DEBUG ((EFI_D_ERROR, "SdMmcHcCardDetect: No device attached in Slot[%d]!!!\n", Slot));
|
DEBUG ((EFI_D_ERROR, "SdMmcHcCardDetect: No device attached in Slot[%d]!!!\n", Slot));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue