[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20200223222535.156348-1-xypron.glpk@gmx.de>
Date: Sun, 23 Feb 2020 23:25:35 +0100
From: Heinrich Schuchardt <xypron.glpk@....de>
To: Ard Biesheuvel <ardb@...nel.org>
Cc: linux-efi@...r.kernel.org, linux-kernel@...r.kernel.org,
Heinrich Schuchardt <xypron.glpk@....de>
Subject: [PATCH 1/1] efi: superfluous assignment in setup_fake_mem()
The value 0 assigned to mem_size is never used. So let's remove the
assignment.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@....de>
---
drivers/firmware/efi/fake_mem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firmware/efi/fake_mem.c b/drivers/firmware/efi/fake_mem.c
index 6e0f34a38171..2e314306ce3c 100644
--- a/drivers/firmware/efi/fake_mem.c
+++ b/drivers/firmware/efi/fake_mem.c
@@ -80,7 +80,7 @@ void __init efi_fake_memmap(void)
static int __init setup_fake_mem(char *p)
{
- u64 start = 0, mem_size = 0, attribute = 0;
+ u64 start = 0, mem_size, attribute = 0;
int i;
if (!p)
--
2.25.0
Powered by blists - more mailing lists