powerpc: remove unused variable
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 6 Oct 2010 00:06:44 +0000 (11:06 +1100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 6 Oct 2010 00:27:54 +0000 (17:27 -0700)
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>
arch/powerpc/kernel/module.c

index 4ef93ae..49cee9d 100644 (file)
@@ -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");