Eliminate the variable.

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
This commit is contained in:
Laszlo Ersek 2014-12-15 08:00:40 +00:00 committed by ydong10
parent d5daaa836f
commit 84b8497338
1 changed files with 0 additions and 2 deletions

View File

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