OcAppleDiskImageLib: Fix compilation warning
@@ -56,18 +56,6 @@ typedef struct {
CHAR16 PathName[DMG_FILE_PATH_LEN];
} DMG_FILEPATH_DEVICE_PATH;
-//
-// Block I/O protocol template.
-//
-EFI_BLOCK_IO_PROTOCOL mDiskImageBlockIo = {
- EFI_BLOCK_IO_PROTOCOL_REVISION,
- NULL,
- DiskImageBlockIoReset,
- DiskImageBlockIoReadBlocks,
- DiskImageBlockIoWriteBlocks,
- DiskImageBlockIoFlushBlocks
-};
-
//
// Block I/O protocol functions.
//
@@ -125,6 +113,18 @@ DiskImageBlockIoFlushBlocks (
return EFI_SUCCESS;
}
+//
+// Block I/O protocol template.
+//
+EFI_BLOCK_IO_PROTOCOL mDiskImageBlockIo = {
+ EFI_BLOCK_IO_PROTOCOL_REVISION,
+ NULL,
+ DiskImageBlockIoReset,
+ DiskImageBlockIoReadBlocks,
+ DiskImageBlockIoWriteBlocks,
+ DiskImageBlockIoFlushBlocks
+};
+
EFI_STATUS
EFIAPI
OcAppleDiskImageInstallBlockIo(
