mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00: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 <henry.ne@arcor.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
319e799abb
commit
19e5d9c0d2
7 changed files with 7 additions and 16 deletions
|
@ -105,9 +105,7 @@ unsigned long __init setup_memory(void)
|
|||
if (INITRD_START + INITRD_SIZE <= PFN_PHYS(max_low_pfn)) {
|
||||
reserve_bootmem_node(NODE_DATA(0), INITRD_START,
|
||||
INITRD_SIZE);
|
||||
initrd_start = INITRD_START ?
|
||||
INITRD_START + PAGE_OFFSET : 0;
|
||||
|
||||
initrd_start = INITRD_START + PAGE_OFFSET;
|
||||
initrd_end = initrd_start + INITRD_SIZE;
|
||||
printk("initrd:start[%08lx],size[%08lx]\n",
|
||||
initrd_start, INITRD_SIZE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue