commit | bca1481ec4a0014271b7c220f41d7a790654dfbb | [log] [tgz] |
---|---|---|
author | Jiri Slaby <jslaby@suse.cz> | Tue Jan 12 10:49:33 2016 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Feb 06 22:16:21 2016 -0800 |
tree | b2f8dd7915084024ad2a5fd5ba3ee636d301f28c | |
parent | 1fba6a594cfd1ea0f1fc8a97e22f43def1505d74 [diff] |
TTY: serial/mpsc, clean up init/remove functions There is a chain of up to 4 nested ifs in init and remove functions. Instead, make the code linear and use goto's to handle failures. Remove unneeded cast from mpsc_release_port by referencing pi->port directly. And finally, use dev_dbg instead of pr_debug given we have dev->dev node. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>