]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputBlt.c
ArmPlatformPkg: Fix Ecc error 5007 in LcdGraphicsOutputDxe
[mirror_edk2.git] / ArmPlatformPkg / Drivers / LcdGraphicsOutputDxe / LcdGraphicsOutputBlt.c
index c865215ec68ecba1e809108cffec9354f042561e..07d2cb0d5dec0f85219fe5cdc438e18ae3a32a38 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
- Copyright (c) 2011-2013, ARM Ltd. All rights reserved.<BR>\r
+ Copyright (c) 2011 - 2020, Arm Limited. All rights reserved.<BR>\r
  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
  **/\r
@@ -36,7 +36,7 @@ VideoCopyNoHorizontalOverlap (
   IN UINTN          Height\r
 )\r
 {\r
-  EFI_STATUS    Status = EFI_SUCCESS;\r
+  EFI_STATUS    Status;\r
   UINTN         SourceLine;\r
   UINTN         DestinationLine;\r
   UINTN         WidthInBytes;\r
@@ -45,6 +45,8 @@ VideoCopyNoHorizontalOverlap (
   VOID          *SourceAddr;\r
   VOID          *DestinationAddr;\r
 \r
+  Status = EFI_SUCCESS;\r
+\r
   if( DestinationY <= SourceY ) {\r
     // scrolling up (or horizontally but without overlap)\r
     SourceLine       = SourceY;\r
@@ -128,7 +130,7 @@ VideoCopyHorizontalOverlap (
   IN UINTN          Height\r
 )\r
 {\r
-  EFI_STATUS      Status = EFI_SUCCESS;\r
+  EFI_STATUS      Status;\r
 \r
   UINT32 *PixelBuffer32bit;\r
   UINT32 *SourcePixel32bit;\r
@@ -143,6 +145,8 @@ VideoCopyHorizontalOverlap (
   UINTN           SizeIn32Bits;\r
   UINTN           SizeIn16Bits;\r
 \r
+  Status = EFI_SUCCESS;\r
+\r
   switch (BitsPerPixel) {\r
 \r
   case LCD_BITS_PER_PIXEL_24:\r