[U-Boot] [PATCH v2 5/5] efi_loader: DevicePathToText put declarations first

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Jul 13 20:51:35 UTC 2017


Variables should be declared before the first executable statement.

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
v2
	new patch
---
 lib/efi_loader/efi_device_path_to_text.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/efi_loader/efi_device_path_to_text.c b/lib/efi_loader/efi_device_path_to_text.c
index 56de328286..621bc4f528 100644
--- a/lib/efi_loader/efi_device_path_to_text.c
+++ b/lib/efi_loader/efi_device_path_to_text.c
@@ -30,12 +30,12 @@ uint16_t *efi_convert_device_path_to_text(
 		bool display_only,
 		bool allow_shortcuts)
 {
-	EFI_ENTRY("%p, %d, %d", device_path, display_only, allow_shortcuts);
-
 	unsigned long buffer_size;
 	efi_status_t r;
 	uint16_t *buffer = NULL;
 
+	EFI_ENTRY("%p, %d, %d", device_path, display_only, allow_shortcuts);
+
 	if (!device_path) {
 		EFI_EXIT(EFI_INVALID_PARAMETER);
 		return NULL;
-- 
2.11.0



More information about the U-Boot mailing list