mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[PATCH] initrd: remove unused false condition for initrd_start
After LOADER_TYPE && INITRD_START are true, the short if-condition for INITRD_START can never be false. Remove unused code from the else condition. Signed-off-by: Henry Nestler <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
319e799abb
commit
19e5d9c0d2
7 changed files with 7 additions and 16 deletions
|
|
@ -243,9 +243,7 @@ void __init setup_arch(char **cmdline_p)
|
|||
if (INITRD_START + INITRD_SIZE <= (PFN_PHYS(last_pfn))) {
|
||||
reserve_bootmem_node(NODE_DATA(0), INITRD_START + __MEMORY_START, INITRD_SIZE);
|
||||
|
||||
initrd_start =
|
||||
(long) INITRD_START ? INITRD_START + PAGE_OFFSET + __MEMORY_START : 0;
|
||||
|
||||
initrd_start = (long) INITRD_START + PAGE_OFFSET + __MEMORY_START;
|
||||
initrd_end = initrd_start + INITRD_SIZE;
|
||||
} else {
|
||||
printk("initrd extends beyond end of memory "
|
||||
|
|
|
|||
Loading…
Reference in a new issue