]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Bus/Pci/IdeBus/Dxe/ata.c
[Source] Useless assigning statement in ata and atapi
[mirror_edk2.git] / EdkModulePkg / Bus / Pci / IdeBus / Dxe / ata.c
index 44e73479a5fe37dba63e0fdb58c16da6b61ee944..3c94c87d6f191f5d7ec6ab487a20de0b8878750b 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  Copyright (c) 2006, Intel Corporation\r
+  Copyright (c) 2006 - 2007 Intel Corporation. <BR>\r
   All rights reserved. This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -67,7 +67,6 @@ ATAIdentify (
   //  use ATA PIO Data In protocol to send ATA Identify command\r
   //  and receive data from device\r
   //\r
-  DeviceSelect  = 0;\r
   DeviceSelect  = (UINT8) ((IdeDev->Device) << 4);\r
   Status = AtaPioDataIn (\r
             IdeDev,\r
@@ -594,13 +593,8 @@ CheckErrorStatus (
   )\r
 {\r
   UINT8 StatusRegister;\r
-\r
-//#ifdef EFI_DEBUG\r
-\r
   UINT8 ErrorRegister;\r
 \r
-//#endif\r
-\r
   StatusRegister = IDEReadPortB (IdeDev->PciIo, IdeDev->IoPort->Reg.Status);\r
 \r
   DEBUG_CODE_BEGIN ();\r
@@ -2221,7 +2215,7 @@ AtaUdmaWrite (
 \r
 /**\r
   Perform an ATA Udma operation (Read, ReadExt, Write, WriteExt).\r
-  \r
+\r
   @param[in] *IdeDev\r
   pointer pointing to IDE_BLK_IO_DEV data structure, used\r
   to record all the information of the IDE device.\r
@@ -2235,7 +2229,7 @@ AtaUdmaWrite (
 \r
   @param[in] NumberOfBlocks\r
   The number of transfer data blocks.\r
-  \r
+\r
   @param[in] UdmaOp\r
   The perform operations could be AtaUdmaReadOp, AtaUdmaReadExOp,\r
   AtaUdmaWriteOp, AtaUdmaWriteExOp\r
@@ -2368,7 +2362,7 @@ DoAtaUdma (
       return EFI_OUT_OF_RESOURCES;\r
     }\r
     ZeroMem ((VOID *) ((UINTN) MemPage), EFI_PAGES_TO_SIZE (PageCount));\r
-    \r
+\r
     PrdAddr = (IDE_DMA_PRD *) ((UINTN) MemPage);\r
     //\r
     // To make sure PRD is allocated in one 64K page\r
@@ -2387,17 +2381,17 @@ DoAtaUdma (
     // Build the PRD table\r
     //\r
     Status = IdeDev->PciIo->Map (\r
-                       IdeDev->PciIo, \r
-                       PciIoProtocolOp, \r
-                       DataBuffer, \r
-                       &ByteCount, \r
+                       IdeDev->PciIo,\r
+                       PciIoProtocolOp,\r
+                       DataBuffer,\r
+                       &ByteCount,\r
                        &DeviceAddress,\r
                        &Map\r
                        );\r
     if (EFI_ERROR (Status)) {\r
       IdeDev->PciIo->FreeBuffer (IdeDev->PciIo, PageCount, MemPage);\r
       return EFI_OUT_OF_RESOURCES;\r
-    }    \r
+    }\r
     PrdBuffer   = (VOID *) ((UINTN) DeviceAddress);\r
     TempPrdAddr = UsedPrdAddr;\r
     while (TRUE) {\r