From 736ece61ebd9c7da1e9da9120e367677311b76df Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Wed, 31 Jan 2018 15:26:26 +0800 Subject: [PATCH] Revert "disk: part_rkparm: add initrd fixup for cmdline" This reverts commit 8fb96674f6cda97c7675b1f1f15938ef4224ab62. Change-Id: I10c3ec88d8f21677cfdee8f766afd9272064964d Signed-off-by: Joseph Chen --- disk/part_rkparm.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/disk/part_rkparm.c b/disk/part_rkparm.c index 748012131c..686fa6ce29 100644 --- a/disk/part_rkparm.c +++ b/disk/part_rkparm.c @@ -40,8 +40,6 @@ static int rkparm_param_parse(char *param, struct list_head *parts_head, char *pend; int len, offset = 0; unsigned long size, start; - char *initrd; - const char *str; if (!cmdline) { printf("invalid parameter\n"); @@ -49,20 +47,6 @@ static int rkparm_param_parse(char *param, struct list_head *parts_head, } *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:" */ env_update("bootargs", cmdline + strlen("CMDLINE:"));