Merge tag 'powerpc-5.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[linux-2.6-microblaze.git] / arch / powerpc / kernel / fadump.c
index 5cdf416..8482739 100644 (file)
@@ -754,10 +754,8 @@ u32 *fadump_regs_to_elf_notes(u32 *buf, struct pt_regs *regs)
 
 void fadump_update_elfcore_header(char *bufp)
 {
-       struct elfhdr *elf;
        struct elf_phdr *phdr;
 
-       elf = (struct elfhdr *)bufp;
        bufp += sizeof(struct elfhdr);
 
        /* First note is a place holder for cpu notes info. */