serial: earlycon: Ignore parse_options() error code

Because setup_earlycon() continues to attempt console registration
if an error occurred parsing the option string, the actual value of
the error code from parse_options() is ignored.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Peter Hurley 2015-03-09 16:27:18 -04:00 committed by Greg Kroah-Hartman
parent cd385e9a2a
commit 526ebc3f56
1 changed files with 1 additions and 2 deletions

View File

@ -114,9 +114,8 @@ int __init setup_earlycon(char *buf, const char *match,
buf += len + 1;
err = parse_options(&early_console_dev, buf);
/* On parsing error, pass the options buf to the setup function */
if (!err)
if (!parse_options(&early_console_dev, buf))
buf = NULL;
port->uartclk = BASE_BAUD * 16;