[PATCH v1 2/7] serial: 8250_platform: Don't shadow error from serial8250_register_8250_port()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Don't shadow error from serial8250_register_8250_port() and return it as is.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
---
 drivers/tty/serial/8250/8250_platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/8250/8250_platform.c b/drivers/tty/serial/8250/8250_platform.c
index a0e71b03015a..ffa2b7b690d3 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;
 }
-- 
2.43.0.rc1.1336.g36b5255a03ac





[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux