MdeModulePkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
@@ -224,7 +224,7 @@ UsbBootExecCmd (
|
||||
If the device isn't ready, wait for it. If the device is ready
|
||||
and error occurs, retry the command again until it exceeds the
|
||||
limit of retrial times.
|
||||
|
||||
|
||||
@param UsbMass The device to issue commands to
|
||||
@param Cmd The command to execute
|
||||
@param CmdLen The length of the command
|
||||
@@ -412,7 +412,7 @@ UsbBootInquiry (
|
||||
@retval EFI_SUCCESS The disk geometry is successfully retrieved.
|
||||
@retval EFI_NOT_READY The returned block size is zero.
|
||||
@retval Other READ CAPACITY 16 bytes command execution failed.
|
||||
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
UsbBootReadCapacity16 (
|
||||
@@ -442,7 +442,7 @@ UsbBootReadCapacity16 (
|
||||
ZeroMem ((CapacityCmd + 2), 8);
|
||||
|
||||
CapacityCmd[13] = sizeof (CapacityData);
|
||||
|
||||
|
||||
Status = UsbBootExecCmdWithRetry (
|
||||
UsbMass,
|
||||
CapacityCmd,
|
||||
@@ -464,13 +464,13 @@ UsbBootReadCapacity16 (
|
||||
Media->LastBlock = SwapBytes64 (ReadUnaligned64 ((CONST UINT64 *) &(CapacityData.LastLba7)));
|
||||
|
||||
BlockSize = SwapBytes32 (ReadUnaligned32 ((CONST UINT32 *) &(CapacityData.BlockSize3)));
|
||||
|
||||
|
||||
Media->LowestAlignedLba = (CapacityData.LowestAlignLogic2 << 8) |
|
||||
CapacityData.LowestAlignLogic1;
|
||||
Media->LogicalBlocksPerPhysicalBlock = (1 << CapacityData.LogicPerPhysical);
|
||||
if (BlockSize == 0) {
|
||||
//
|
||||
// Get sense data
|
||||
// Get sense data
|
||||
//
|
||||
return UsbBootRequestSense (UsbMass);
|
||||
} else {
|
||||
@@ -494,7 +494,7 @@ UsbBootReadCapacity16 (
|
||||
@retval EFI_SUCCESS The disk geometry is successfully retrieved.
|
||||
@retval EFI_NOT_READY The returned block size is zero.
|
||||
@retval Other READ CAPACITY command execution failed.
|
||||
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
UsbBootReadCapacity (
|
||||
@@ -538,7 +538,7 @@ UsbBootReadCapacity (
|
||||
BlockSize = SwapBytes32 (ReadUnaligned32 ((CONST UINT32 *) CapacityData.BlockLen));
|
||||
if (BlockSize == 0) {
|
||||
//
|
||||
// Get sense data
|
||||
// Get sense data
|
||||
//
|
||||
return UsbBootRequestSense (UsbMass);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user