summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@semihalf.com>2018-04-18 03:54:35 +0200
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2018-04-19 12:32:46 +0200
commit3454e932107c7524f6a89fcab35d430d0b422b2e (patch)
tree8fd0ac4f01339829d22e2c201d9da14518fabaec
parent06866930dc6da54c4d9d2f088d9192b3547ca924 (diff)
downloadedk2-platforms-3454e932107c7524f6a89fcab35d430d0b422b2e.tar.xz
Marvell/Drivers: MvFvbDxe: Fix uninstallation of protocol
Recently added installation of gEdkiiNvVarStoreFormattedGuid introduced bug in the error path. gBS->UninstallProtocolInterface takes an actual handle as an argument (not the pointer). Fix this and on the occasion fix indentation of multiline call. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
-rw-r--r--Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.c b/Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.c
index 6e583a381f..1a41a4f47e 100644
--- a/Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.c
+++ b/Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.c
@@ -1142,9 +1142,9 @@ ErrorSetMemAttr:
gDS->RemoveMemorySpace (RegionBaseAddress, RuntimeMmioRegionSize);
ErrorAddSpace:
- gBS->UninstallProtocolInterface (&gImageHandle,
- &gEdkiiNvVarStoreFormattedGuid,
- NULL);
+ gBS->UninstallProtocolInterface (gImageHandle,
+ &gEdkiiNvVarStoreFormattedGuid,
+ NULL);
ErrorInstallNvVarStoreFormatted:
gBS->UninstallMultipleProtocolInterfaces (&mFvbDevice->Handle,