]> git.proxmox.com Git - mirror_edk2.git/commitdiff
1. Remove the unnecessary check of the existing of BlockIo2 in PartitionDriverBinding...
authorqianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 1 Dec 2011 05:10:41 +0000 (05:10 +0000)
committerqianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 1 Dec 2011 05:10:41 +0000 (05:10 +0000)
2. Remove the comments of the BlockIo2 check in PartitionDriverBindingStart().

Signed-off-by: qianouyang
Reviewed-by: niruiyu
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12806 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c

index a51c7dd8dbba8537c41352daa5a9a0ed1a2d5ad5..318bfe4326c786869e0ab7ec990fd3771108a802 100644 (file)
@@ -165,27 +165,10 @@ PartitionDriverBindingSupported (
                   ControllerHandle,\r
                   EFI_OPEN_PROTOCOL_TEST_PROTOCOL\r
                   );\r
- if (EFI_ERROR (Status)) {\r
-   return Status;\r
- }\r
-  \r
- Status = gBS->OpenProtocol (\r
-                 ControllerHandle,\r
-                 &gEfiBlockIo2ProtocolGuid,\r
-                 NULL,\r
-                 This->DriverBindingHandle,\r
-                 ControllerHandle,\r
-                 EFI_OPEN_PROTOCOL_TEST_PROTOCOL\r
-                 );\r
   if (EFI_ERROR (Status)) {\r
-    //\r
-    // According to UEFI Spec 2.3.1, if a driver is written for a disk device, \r
-    // then the EFI_BLOCK_IO_PROTOCOL and EFI_BLOCK_IO2_PROTOCOAL must be implemented.\r
-    // Currently, SCSI disk driver only produce the EFI_BLOCK_IO_PROTOCOL, it will\r
-    // not be updated until the non blocking SCSI Pass Thru Protocol is provided.\r
-    // If there is no EFI_BLOCK_IO2_PROTOCOL, skip here.\r
-    //    \r
-  } \r
+    return Status;\r
+  }\r
+\r
   return EFI_SUCCESS;  \r
 }\r
 \r
@@ -222,6 +205,7 @@ PartitionDriverBindingStart (
   BOOLEAN                   MediaPresent;\r
   EFI_TPL                   OldTpl;\r
 \r
+  BlockIo2 = NULL;\r
   OldTpl = gBS->RaiseTPL (TPL_CALLBACK); \r
   //\r
   // Check RemainingDevicePath validation\r
@@ -261,15 +245,6 @@ PartitionDriverBindingStart (
                   ControllerHandle,\r
                   EFI_OPEN_PROTOCOL_BY_DRIVER\r
                   );\r
-  if (EFI_ERROR (Status)) {\r
-    //\r
-    // According to UEFI Spec 2.3.1, if a driver is written for a disk device, \r
-    // then the EFI_BLOCK_IO_PROTOCOL and EFI_BLOCK_IO2_PROTOCOAL must be implemented.\r
-    // Currently, SCSI disk driver only produce the EFI_BLOCK_IO_PROTOCOL, it will\r
-    // not be updated until the non blocking SCSI Pass Thru Protocol is provided.\r
-    // If there is no EFI_BLOCK_IO2_PROTOCOL, skip here.\r
-    //\r
-  }\r
 \r
   //\r
   // Get the Device Path Protocol on ControllerHandle's handle.\r