summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-08-12 18:47:04 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-14 08:22:50 +0200
commit6586ccd7685bd1550c06ed93e3b11feab9f9d6a6 (patch)
tree92b43050105b10fb9ffb178f2138781f8efd1597
parentacf7c31def54147964955b61b883d440e0fd1a7f (diff)
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: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20240812154901.1068407-3-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/serial/8250/8250_platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_platform.c b/drivers/tty/serial/8250/8250_platform.c
index 8e1cedf36db2..5f0ea39c4af2 100644
--- a/drivers/tty/serial/8250/8250_platform.c
+++ b/drivers/tty/serial/8250/8250_platform.c
@@ -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;
}