projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1776fd0
)
tty: serial: altera_uart: Simplify altera_uart_init()
author
Tobias Klauser
<tklauser@distanz.ch>
Tue, 5 Feb 2013 17:07:42 +0000
(18:07 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 5 Feb 2013 19:13:50 +0000
(11:13 -0800)
No need for two separate return statements, consolidate them.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/altera_uart.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/altera_uart.c
b/drivers/tty/serial/altera_uart.c
index e133c8814bb5b36c68d1ee246c45c37cb2204293..13471dd95793f39a6b8b4c96a5c5381c4327d8ca 100644
(file)
--- a/
drivers/tty/serial/altera_uart.c
+++ b/
drivers/tty/serial/altera_uart.c
@@
-637,11
+637,9
@@
static int __init altera_uart_init(void)
if (rc)
return rc;
rc = platform_driver_register(&altera_uart_platform_driver);
- if (rc)
{
+ if (rc)
uart_unregister_driver(&altera_uart_driver);
- return rc;
- }
- return 0;
+ return rc;
}
static void __exit altera_uart_exit(void)