Commit 6586ccd7 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman

serial: 8250_platform: Don't shadow error from serial8250_register_8250_port()

Don't shadow error from serial8250_register_8250_port() and return it as is.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240812154901.1068407-3-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent acf7c31d
......@@ -150,7 +150,7 @@ static int serial8250_platform_probe(struct platform_device *pdev)
line = serial8250_register_8250_port(&uart);
if (line < 0)
return -ENODEV;
return line;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment