RISC-V: Remove duplicate command-line parsing logic
authorMichael Clark <mjc@sifive.com>
Sat, 16 Dec 2017 19:17:02 +0000 (11:17 -0800)
committerPalmer Dabbelt <palmer@dabbelt.com>
Wed, 31 Jan 2018 03:09:52 +0000 (19:09 -0800)
commit3e076a7e049267e9c483674d0dd1caaca565dbef
treeb48cd4f110e4399eae135f3ffcd2cc3dca098c5f
parent155d33af7eeef19909d77aa0996c1d2dd8f1fa76
RISC-V: Remove duplicate command-line parsing logic

builtin_cmdline handling is present in drivers/of/fdt.c so the
duplicate logic in arch/riscv/setup.c results in duplication of
the builtin command line. e.g. CONFIG_CMDLINE="root=/dev/vda ro"
gets appended twice and gives "root=/dev/vda ro root=/dev/vda ro"

Before this patch:

[    0.000000] Kernel command line: root=/dev/vda ro root=/dev/vda ro

After this patch:

[    0.000000] Kernel command line: root=/dev/vda ro

Signed-off-by: Michael Clark <mjc@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/setup.c