summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/m32r_sio.h
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2016-01-12 10:49:33 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-06 22:16:21 -0800
commitbca1481ec4a0014271b7c220f41d7a790654dfbb (patch)
treeb2f8dd7915084024ad2a5fd5ba3ee636d301f28c /drivers/tty/serial/m32r_sio.h
parent1fba6a594cfd1ea0f1fc8a97e22f43def1505d74 (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>
Diffstat (limited to 'drivers/tty/serial/m32r_sio.h')
0 files changed, 0 insertions, 0 deletions