]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c
OptionRomPkg: FrameBufferBltLib: drop set but not used variable
[mirror_edk2.git] / OptionRomPkg / Library / FrameBufferBltLib / FrameBufferBltLib.c
index 5bb3cfbb28c0fa87ec88459e2150081b89d4bbac..955ae3dfeac99eda6923f711ac480c9b8b80792b 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   FrameBufferBltLib - Library to perform blt operations on a frame buffer.\r
 \r
-  Copyright (c) 2007 - 2011, Intel Corporation\r
-  All rights reserved. This program and the accompanying materials\r
+  Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  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
   http://opensource.org/licenses/bsd-license.php\r
@@ -65,9 +65,8 @@ ConfigurePixelBitMaskFormat (
   }\r
   MergedMasks = (UINT32) (MergedMasks | Masks[3]);\r
 \r
-  mBltLibBytesPerPixel = HighBitSet32 (MergedMasks);\r
-  ASSERT (mBltLibBytesPerPixel >= 0);\r
-  mBltLibBytesPerPixel = (mBltLibBytesPerPixel + 7) / 8;\r
+  ASSERT (MergedMasks != 0);\r
+  mBltLibBytesPerPixel = (UINTN) ((HighBitSet32 (MergedMasks) + 7) / 8);\r
 \r
   DEBUG ((EFI_D_INFO, "Bytes per pixel: %d\n", mBltLibBytesPerPixel));\r
 \r
@@ -237,7 +236,6 @@ BltLibVideoFill (
   )\r
 {\r
   UINTN                           DstY;\r
-  VOID                            *BltMemSrc;\r
   VOID                            *BltMemDst;\r
   UINTN                           X;\r
   UINT8                           Uint8;\r
@@ -348,7 +346,6 @@ BltLibVideoFill (
               );\r
             X = X + MIN (X, Width - X);\r
           }\r
-          BltMemSrc = (VOID *) mBltLibLineBuffer;\r
           LineBufferReady = TRUE;\r
         }\r
         CopyMem (BltMemDst, mBltLibLineBuffer, WidthInBytes);\r