From 4be6895a0512e284611054ff39932f768f9a50a4 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Wed, 30 Sep 2020 09:20:00 +0200 Subject: common: memsize: eliminate dead store The assignment to val at this location serves no purpose, drop it to reduce clutter. Reported-by: clang-analyzer-10 Signed-off-by: Ahmad Fatoum Signed-off-by: Sascha Hauer --- common/memsize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/memsize.c b/common/memsize.c index 915ab87b34..2fd2b71457 100644 --- a/common/memsize.c +++ b/common/memsize.c @@ -58,7 +58,7 @@ long get_ram_size(volatile long *base, long maxsize) *addr = 0; sync (); - if ((val = *addr) != 0) { + if (*addr != 0) { /* Restore the original data before leaving the function. */ sync (); -- cgit v1.2.3