summaryrefslogtreecommitdiff
path: root/Platform/Marvell/Applications
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-05-01 09:47:28 +0100
committerMarcin Wojtas <mw@semihalf.com>2017-10-05 16:42:19 +0200
commit440821a4903d380b68e9f09ede73404e2fe2715b (patch)
tree1f511f020674f63cdbc9952df3fb666eae2d157d /Platform/Marvell/Applications
parent311678bae4a77793af06e194f120d2660fcc8c1b (diff)
downloadedk2-platforms-440821a4903d380b68e9f09ede73404e2fe2715b.tar.xz
Marvell/Applications/SpiTool: Fix bug in error test
Fix a misplaced closing parenthesis. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'Platform/Marvell/Applications')
-rw-r--r--Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c b/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c
index b6dc54f53b..e6e1007ced 100644
--- a/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c
+++ b/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c
@@ -378,7 +378,7 @@ EFI_STATUS Status;
FilePath = (CHAR16 *) FileStr;
Status = ShellIsFile (FilePath);
// When read file into flash, file doesn't have to exist
- if (EFI_ERROR(Status && !(Flag & READ_FILE))) {
+ if (EFI_ERROR (Status) && !(Flag & READ_FILE)) {
Print (L"sf: Wrong FilePath parameter!\n");
return SHELL_ABORTED;
}