]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c
ShellPkg: Fixed build errors related to variable declarations
[mirror_edk2.git] / ShellPkg / Library / UefiShellLevel2CommandsLib / Mv.c
index 9ce915b96c4a98c77bc92f582383b1c7adeb1310..0d01ad7487be4aea8063c11f0bfe6004c14096e9 100644 (file)
@@ -136,7 +136,6 @@ GetDestinationLocation(
   EFI_SHELL_FILE_INFO       *DestList;\r
   EFI_SHELL_FILE_INFO       *Node;\r
   CHAR16                    *DestPath;\r
-  CHAR16                    *TempLocation;\r
   UINTN                     NewSize;\r
 \r
   DestList = NULL;\r
@@ -163,7 +162,7 @@ GetDestinationLocation(
     //\r
     // Not existing... must be renaming\r
     //\r
-    if ((TempLocation = StrStr(DestDir, L":")) == NULL) {\r
+    if (StrStr(DestDir, L":") == NULL) {\r
       if (Cwd == NULL) {\r
         ShellCloseFileMetaArg(&DestList);\r
         return (SHELL_INVALID_PARAMETER);\r