From: Paul Burton Date: Thu, 3 Oct 2019 22:46:36 +0000 (+0000) Subject: MIPS: pmcs-msp71xx: Remove unused addr variable X-Git-Tag: v5.4-rc2~9^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=437450cf09c382ff26c14c868d3a1e82c269be12;p=users%2Fhch%2Fuuid.git MIPS: pmcs-msp71xx: Remove unused addr variable 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 Fixes: b3c948e2c00f ("MIPS: msp: Record prom memory") Cc: Jiaxun Yang Cc: linux-mips@vger.kernel.org --- 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