Skip to contentSkip to conversation

MIPS: fw/arc: Remove unused addr variable

PATCH Applied Paul Burton 1 participant 2 messages Oct 4, 2019 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: fw/arc: Remove unused addr variable

The addr variable in prom_free_prom_memory() has been unused since commit 0df1007677d5 ("MIPS: fw: Record prom memory"), leading to a compiler warning:

arch/mips/fw/arc/memory.c:163:16:
warning: unused variable 'addr' [-Wunused-variable]

Fix this by removing the unused variable.

Fixes 0df1007677d5 ("MIPS: fw: Record prom memory")
Cc Jiaxun Yang <[email protected]>

---

 arch/mips/fw/arc/memory.c | 1 -
 1 file changed, 1 deletion(-)
arch/mips/fw/arc/memory.c +0 -1
index af44b35d79a1..b4328b3b5288 100644
@@ -160,7 +160,6 @@ void __init prom_meminit(void)
 
 void __init prom_free_prom_memory(void)
 {
-	unsigned long addr;
 	int i;
 
 	if (prom_flags & PROM_FLAG_DONT_FREE_TEMP)
Signature · 1 line
2.23.0
author Applied
#1 lore raw

Hello,

Quoted 8 lines · Paul Burton

The addr variable in prom_free_prom_memory() has been unused since commit 0df1007677d5 ("MIPS: fw: Record prom memory"), leading to a compiler warning:

arch/mips/fw/arc/memory.c:163:16:
warning: unused variable 'addr' [-Wunused-variable]

Fix this by removing the unused variable.

Applied to mips-fixes.

Quoted 5 lines

commit 6822c29ddbbd
https://git.kernel.org/mips/c/6822c29ddbbd

Fixes 0df1007677d5 ("MIPS: fw: Record prom memory")

Thanks,
Paul

[ This message was auto-generated; if you believe anything is incorrect
then please email [email protected] to report it. ]