]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Eliminate the variable.
authorLaszlo Ersek <lersek@redhat.com>
Mon, 15 Dec 2014 08:00:40 +0000 (08:00 +0000)
committerydong10 <ydong10@Edk2>
Mon, 15 Dec 2014 08:00:40 +0000 (08:00 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16519 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c

index e9cdea0e8ba076668214446eebd3fe3db687e96e..d82e08ed9125bfc27b8d6e6beabf2889e4a731e1 100644 (file)
@@ -466,7 +466,6 @@ IsDevicePathExist (
   )\r
 {\r
   UINTN                    Length;\r
   )\r
 {\r
   UINTN                    Length;\r
-  EFI_STRING               PathHdr;\r
 \r
   for (; (*String != 0 && StrnCmp (String, L"PATH=", StrLen (L"PATH=")) != 0); String++);\r
   if (*String == 0) {\r
 \r
   for (; (*String != 0 && StrnCmp (String, L"PATH=", StrLen (L"PATH=")) != 0); String++);\r
   if (*String == 0) {\r
@@ -477,7 +476,6 @@ IsDevicePathExist (
   if (*String == 0) {\r
     return FALSE;\r
   }\r
   if (*String == 0) {\r
     return FALSE;\r
   }\r
-  PathHdr = String;\r
 \r
   for (Length = 0; *String != 0 && *String != L'&'; String++, Length++);\r
   if (((Length + 1) / 2) < sizeof (EFI_DEVICE_PATH_PROTOCOL)) {\r
 \r
   for (Length = 0; *String != 0 && *String != L'&'; String++, Length++);\r
   if (((Length + 1) / 2) < sizeof (EFI_DEVICE_PATH_PROTOCOL)) {\r