Revert "disk: part_rkparm: add initrd fixup for cmdline"

This reverts commit 8fb96674f6.

Change-Id: I10c3ec88d8f21677cfdee8f766afd9272064964d
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2018-01-31 15:26:26 +08:00 committed by Kever Yang
parent 105f3d76b6
commit 736ece61eb
1 changed files with 0 additions and 16 deletions

View File

@ -40,8 +40,6 @@ static int rkparm_param_parse(char *param, struct list_head *parts_head,
char *pend; char *pend;
int len, offset = 0; int len, offset = 0;
unsigned long size, start; unsigned long size, start;
char *initrd;
const char *str;
if (!cmdline) { if (!cmdline) {
printf("invalid parameter\n"); printf("invalid parameter\n");
@ -49,20 +47,6 @@ static int rkparm_param_parse(char *param, struct list_head *parts_head,
} }
*cmdline_end = '\0'; *cmdline_end = '\0';
/*
* Initrd fixup: remove unused "initrd=0x...,0x...", this for
* compatible with legacy parameter.txt
*/
initrd = strstr(cmdline, "initrd=");
if (initrd) {
str = strstr(initrd, " ");
/* Terminate, so cmdline can be dest for strcat() */
*initrd = '\0';
/* +1 to skip current white space */
strcat((char *)cmdline, (str + 1));
}
/* skip "CMDLINE:" */ /* skip "CMDLINE:" */
env_update("bootargs", cmdline + strlen("CMDLINE:")); env_update("bootargs", cmdline + strlen("CMDLINE:"));