aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJiri Slaby <[email protected]>2016-01-12 10:49:33 +0100
committerGreg Kroah-Hartman <[email protected]>2016-02-06 22:16:21 -0800
commitbca1481ec4a0014271b7c220f41d7a790654dfbb (patch)
treeb2f8dd7915084024ad2a5fd5ba3ee636d301f28c /tools/perf/scripts/python
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions