]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/UefiShellAcpiViewCommandLib: Remove the variable "Index"
authorShenglei Zhang <shenglei.zhang@intel.com>
Wed, 14 Aug 2019 03:04:45 +0000 (11:04 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 15 Aug 2019 03:14:49 +0000 (11:14 +0800)
In IortParser.c ,the variable Index is set but not used in
function DumpIortNodeNamedComponent. This will cause build failure
when building ShellPkg with GCC.

Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c

index 8912d415a755c7f892b5cd2edc532aae8964a42c..f1cdb9ac01d848f22ab588d8f824886387c5983d 100644 (file)
@@ -472,7 +472,6 @@ DumpIortNodeNamedComponent (
   )\r
 {\r
   UINT32 Offset;\r
-  UINT32 Index;\r
 \r
   Offset = ParseAcpi (\r
              TRUE,\r
@@ -485,7 +484,6 @@ DumpIortNodeNamedComponent (
 \r
   // Estimate the Device Name length\r
   PrintFieldName (2, L"Device Object Name");\r
-  Index = 0;\r
 \r
   while ((*(Ptr + Offset) != 0) &&\r
          (Offset < Length)) {\r