Eliminate various issues brought up by scan-build.
[coreboot.git] / src / boot / elfboot.c
index ed15e96fe7b1a3c8de622e98cb24770f89fd079d..acffb634dac94e643f3989bb9e57e9cd3037eacb 100644 (file)
@@ -362,9 +362,6 @@ static void relocate_segment(unsigned long buffer, struct segment *seg)
                seg->phdr_next->phdr_prev = new;
                seg->phdr_next = new;
 
-               /* compute the new value of end */
-               end = start + len;
-               
                printk_spew("   late: [0x%016lx, 0x%016lx, 0x%016lx)\n", 
                        new->s_addr, 
                        new->s_addr + new->s_filesz,