Skip to content

Commit

Permalink
MIPS: fw/arc: Remove unused addr variable
Browse files Browse the repository at this point in the history
The addr variable in prom_free_prom_memory() has been unused since
commit 0df1007 ("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: 0df1007 ("MIPS: fw: Record prom memory")
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: linux-mips@vger.kernel.org
  • Loading branch information
Paul Burton committed Oct 4, 2019
1 parent 437450c commit 6822c29
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/mips/fw/arc/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6822c29

Please sign in to comment.