From 45ce0a67bb4ee80f27da93777c623f51f344f23b Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Sun, 5 Dec 2021 14:53:58 -0800 Subject: FmpDevicePkg: Apply uncrustify changes REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the FmpDevicePkg package Cc: Andrew Fish Cc: Leif Lindholm Cc: Michael D Kinney Signed-off-by: Michael Kubacki Reviewed-by: Liming Gao --- .../Library/FmpDeviceLibNull/FmpDeviceLib.c | 27 ++++++++++++---------- 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'FmpDevicePkg/Library/FmpDeviceLibNull') diff --git a/FmpDevicePkg/Library/FmpDeviceLibNull/FmpDeviceLib.c b/FmpDevicePkg/Library/FmpDeviceLibNull/FmpDeviceLib.c index 92f202112f..2e5c17b2b0 100644 --- a/FmpDevicePkg/Library/FmpDeviceLibNull/FmpDeviceLib.c +++ b/FmpDevicePkg/Library/FmpDeviceLibNull/FmpDeviceLib.c @@ -131,6 +131,7 @@ FmpDeviceGetSize ( if (Size == NULL) { return EFI_INVALID_PARAMETER; } + *Size = 0; return EFI_SUCCESS; } @@ -184,13 +185,14 @@ FmpDeviceGetImageTypeIdGuidPtr ( EFI_STATUS EFIAPI FmpDeviceGetAttributes ( - OUT UINT64 *Supported, - OUT UINT64 *Setting + OUT UINT64 *Supported, + OUT UINT64 *Setting ) { - if (Supported == NULL || Setting == NULL) { + if ((Supported == NULL) || (Setting == NULL)) { return EFI_INVALID_PARAMETER; } + *Supported = 0; *Setting = 0; return EFI_SUCCESS; @@ -268,6 +270,7 @@ FmpDeviceGetVersionString ( if (VersionString == NULL) { return EFI_INVALID_PARAMETER; } + *VersionString = NULL; return EFI_UNSUPPORTED; } @@ -527,15 +530,15 @@ FmpDeviceSetImage ( { UINT32 LastAttemptStatus; - return FmpDeviceSetImageWithStatus ( - Image, - ImageSize, - VendorCode, - Progress, - CapsuleFwVersion, - AbortReason, - &LastAttemptStatus - ); + return FmpDeviceSetImageWithStatus ( + Image, + ImageSize, + VendorCode, + Progress, + CapsuleFwVersion, + AbortReason, + &LastAttemptStatus + ); } /** -- cgit v1.2.3