ArmPkg: fix compilation error in ArmDmaLib
authorLeif Lindholm <leif.lindholm@linaro.org>
Thu, 1 Dec 2016 16:31:03 +0000 (16:31 +0000)
committerLeif Lindholm <leif.lindholm@linaro.org>
Thu, 1 Dec 2016 17:02:13 +0000 (17:02 +0000)
Commit 0a99a65d2c8a ("fix incorrect device address of double buffer")
retained an explicit cast on the variable "Buffer" which became
incorrect with the other changes, leading to compilation failures
with some toolchains. Drop the cast.

Contributed-under: TianoCore Contribution Agreement 1.0
Reported-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Tested-by: Sudeep Holla <sudeep.holla@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
ArmPkg/Library/ArmDmaLib/ArmDmaLib.c

index acc106bcf4a8b609943660ac1293cf2571607c8e..f4ee9e4c5ea2ba61e03bd8dcfda6b58cbfb8db18 100644 (file)
@@ -142,7 +142,7 @@ DmaMap (
         CopyMem (Buffer, HostAddress, *NumberOfBytes);\r
       }\r
 \r
-      *DeviceAddress = HostToDeviceAddress (ConvertToPhysicalAddress ((UINTN)Buffer));\r
+      *DeviceAddress = HostToDeviceAddress (ConvertToPhysicalAddress (Buffer));\r
       Map->BufferAddress = Buffer;\r
     } else {\r
       Map->DoubleBuffer  = FALSE;\r