Skip to content

Commit

Permalink
powerpc: remove unused variable
Browse files Browse the repository at this point in the history
Since powerpc uses -Werror on arch powerpc, the build was broken like
this:

  cc1: warnings being treated as errors
  arch/powerpc/kernel/module.c: In function 'module_finalize':
  arch/powerpc/kernel/module.c:66: error: unused variable 'err'

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Stephen Rothwell authored and Linus Torvalds committed Oct 6, 2010
1 parent e1d9694 commit 7c6d45e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/powerpc/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ int module_finalize(const Elf_Ehdr *hdr,
const Elf_Shdr *sechdrs, struct module *me)
{
const Elf_Shdr *sect;
int err;

/* Apply feature fixups */
sect = find_section(hdr, sechdrs, "__ftr_fixup");
Expand Down

0 comments on commit 7c6d45e

Please sign in to comment.