summaryrefslogtreecommitdiffstats
path: root/common/memory_display.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/memory_display.c')
-rw-r--r--common/memory_display.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/memory_display.c b/common/memory_display.c
index fbb8bbb6fa..c0ca469703 100644
--- a/common/memory_display.c
+++ b/common/memory_display.c
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
#include <common.h>
#include <errno.h>
#include <abort.h>
@@ -121,9 +123,9 @@ int __pr_memory_display(int level, const void *addr, loff_t offs, unsigned nbyte
} while (nbytes > 0);
- va_end(args);
ret = 0;
out:
+ va_end(args);
return ret;
}
@@ -132,4 +134,4 @@ int memory_display(const void *addr, loff_t offs, unsigned nbytes,
int size, int swab)
{
return pr_memory_display(-1, addr, offs, nbytes, size, swab);
-} \ No newline at end of file
+}