Revision: 14605
http://sourceforge.net/p/edk2/code/14605
Author: oliviermartin
Date: 2013-08-27 09:01:54 +0000 (Tue, 27 Aug 2013)
Log Message:
-----------
ShellPkg: Fixed build errors related to variable declarations
- variable "TempLocation" was set but never used
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <[email protected]>
Reviewed-by: Jaben Carsey <[email protected]>
Modified Paths:
--------------
trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c
Modified: trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
===================================================================
--- trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c 2013-08-27
07:29:45 UTC (rev 14604)
+++ trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c 2013-08-27
09:01:54 UTC (rev 14605)
@@ -286,7 +286,6 @@
VOID *Response;
UINTN PathLen;
CONST CHAR16 *Cwd;
- CONST CHAR16 *TempLocation;
UINTN NewSize;
if (Resp == NULL) {
@@ -479,7 +478,7 @@
break;
}
- if ((TempLocation = StrniCmp(Node->FullName, DestPath,
StrLen(Node->FullName))) == 0
+ if ((StrniCmp(Node->FullName, DestPath, StrLen(Node->FullName)) == 0)
&& (DestPath[StrLen(Node->FullName)] == CHAR_NULL ||
DestPath[StrLen(Node->FullName)] == L'\\')
) {
ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_SD_SAME),
gShellLevel2HiiHandle);
@@ -552,7 +551,6 @@
} else if (List != NULL) {
ASSERT(((EFI_SHELL_FILE_INFO *)List->Link.ForwardLink) != NULL);
ASSERT(((EFI_SHELL_FILE_INFO *)List->Link.ForwardLink)->FullName != NULL);
- FileInfo = NULL;
FileInfo = gEfiShellProtocol->GetFileInfo(((EFI_SHELL_FILE_INFO
*)List->Link.ForwardLink)->Handle);
ASSERT(FileInfo != NULL);
StrnCatGrow(&FullName, NULL, ((EFI_SHELL_FILE_INFO
*)List->Link.ForwardLink)->FullName, 0);
Modified: trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c
===================================================================
--- trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c 2013-08-27
07:29:45 UTC (rev 14604)
+++ trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c 2013-08-27
09:01:54 UTC (rev 14605)
@@ -136,7 +136,6 @@
EFI_SHELL_FILE_INFO *DestList;
EFI_SHELL_FILE_INFO *Node;
CHAR16 *DestPath;
- CHAR16 *TempLocation;
UINTN NewSize;
DestList = NULL;
@@ -163,7 +162,7 @@
//
// Not existing... must be renaming
//
- if ((TempLocation = StrStr(DestDir, L":")) == NULL) {
+ if (StrStr(DestDir, L":") == NULL) {
if (Cwd == NULL) {
ShellCloseFileMetaArg(&DestList);
return (SHELL_INVALID_PARAMETER);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits