Replace EFI_MAX() with MAX()
Replace EFI_MIN() with MIN() git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3631 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -754,7 +754,7 @@ PioReadWriteData (
|
||||
WordCount = WordCount & 0xffff;
|
||||
WordCount /= 2;
|
||||
|
||||
WordCount = EFI_MIN (WordCount, (RequiredWordCount - ActualWordCount));
|
||||
WordCount = MIN (WordCount, (RequiredWordCount - ActualWordCount));
|
||||
|
||||
if (Read) {
|
||||
IDEReadPortWMultiple (
|
||||
|
@@ -393,7 +393,7 @@ IDEBusDriverBindingStart (
|
||||
continue;
|
||||
}
|
||||
|
||||
EndIdeDevice = (UINT8) EFI_MIN ((MaxDevices - 1), EndIdeDevice);
|
||||
EndIdeDevice = (UINT8) MIN ((MaxDevices - 1), EndIdeDevice);
|
||||
|
||||
//
|
||||
// Now inform the IDE Controller Init Module. Sept10
|
||||
|
@@ -43,8 +43,6 @@
|
||||
//
|
||||
// Extra Definition to porting
|
||||
//
|
||||
#define EFI_MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||
|
||||
#define MAX_IDE_DEVICE 4
|
||||
#define MAX_IDE_CHANNELS 2
|
||||
#define MAX_IDE_DRIVES 2
|
||||
|
Reference in New Issue
Block a user