linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] MIPS: fw/arc: Remove unused addr variable
@ 2019-10-04 17:41 Paul Burton
  2019-10-04 18:46 ` Paul Burton
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Burton @ 2019-10-04 17:41 UTC (permalink / raw)
  To: linux-mips; +Cc: Paul Burton, Jiaxun Yang

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.

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

 arch/mips/fw/arc/memory.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/mips/fw/arc/memory.c b/arch/mips/fw/arc/memory.c
index af44b35d79a1..b4328b3b5288 100644
--- a/arch/mips/fw/arc/memory.c
+++ b/arch/mips/fw/arc/memory.c
@@ -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)
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] MIPS: fw/arc: Remove unused addr variable
  2019-10-04 17:41 [PATCH] MIPS: fw/arc: Remove unused addr variable Paul Burton
@ 2019-10-04 18:46 ` Paul Burton
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Burton @ 2019-10-04 18:46 UTC (permalink / raw)
  To: Paul Burton; +Cc: linux-mips, Paul Burton, Jiaxun Yang, linux-mips

Hello,

Paul Burton wrote:
> 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.

> commit 6822c29ddbbd
> https://git.kernel.org/mips/c/6822c29ddbbd
> 
> Signed-off-by: Paul Burton <paul.burton@mips.com>
> Fixes: 0df1007677d5 ("MIPS: fw: Record prom memory")

Thanks,
    Paul

[ This message was auto-generated; if you believe anything is incorrect
  then please email paul.burton@mips.com to report it. ]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-04 18:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-04 17:41 [PATCH] MIPS: fw/arc: Remove unused addr variable Paul Burton
2019-10-04 18:46 ` Paul Burton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).