From f184f5e08bfe9125f268ddaabef5b187072aa382 Mon Sep 17 00:00:00 2001 From: Marcin Wojtas Date: Thu, 26 Oct 2017 01:37:41 +0200 Subject: Marvell/Drivers: MvI2cDxe: Fix returning status in MvI2cStartRequest In MvI2cStartRequest the status was assigned to the variable without dereferencing a pointer. Fix it. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas Reviewed-by: Leif Lindholm --- Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c b/Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c index b4599d2e6d..a62383f3a7 100755 --- a/Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c +++ b/Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c @@ -627,7 +627,7 @@ MvI2cStartRequest ( } if (I2cStatus != NULL) - I2cStatus = EFI_SUCCESS; + *I2cStatus = EFI_SUCCESS; if (Event != NULL) gBS->SignalEvent(Event); return EFI_SUCCESS; -- cgit v1.2.3