diff mbox series

[2/2] MIPS: pmcs-msp71xx: Remove unused addr variable

Message ID 20191003224611.727276-2-paul.burton@mips.com (mailing list archive)
State Mainlined
Commit 437450cf09c382ff26c14c868d3a1e82c269be12
Headers show
Series [1/2] MIPS: pmcs-msp71xx: Add missing MAX_PROM_MEM definition | expand

Commit Message

Paul Burton Oct. 3, 2019, 10:46 p.m. UTC
The addr variable in prom_free_prom_memory() has been unused since
commit b3c948e2c00f ("MIPS: msp: Record prom memory"), causing a warning
& build failure due to -Werror. Remove the unused variable.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Fixes: b3c948e2c00f ("MIPS: msp: Record prom memory")
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
---

 arch/mips/pmcs-msp71xx/msp_prom.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/mips/pmcs-msp71xx/msp_prom.c b/arch/mips/pmcs-msp71xx/msp_prom.c
index f87c522a63e6..800a21b8b8b0 100644
--- a/arch/mips/pmcs-msp71xx/msp_prom.c
+++ b/arch/mips/pmcs-msp71xx/msp_prom.c
@@ -378,7 +378,6 @@  void __init prom_free_prom_memory(void)
 	char	*ptr;
 	int	len = 0;
 	int	i;
-	unsigned long addr;
 
 	/*
 	 * preserve environment variables and command line from pmon/bbload