mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -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
|
|
@ -332,8 +332,7 @@ void __init setup_arch(char **cmdline_p)
|
|||
if (LOADER_TYPE && INITRD_START) {
|
||||
if (INITRD_START + INITRD_SIZE <= (max_low_pfn << PAGE_SHIFT)) {
|
||||
reserve_bootmem_node(NODE_DATA(0), INITRD_START+__MEMORY_START, INITRD_SIZE);
|
||||
initrd_start =
|
||||
INITRD_START ? INITRD_START + PAGE_OFFSET + __MEMORY_START : 0;
|
||||
initrd_start = 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