diff options
author | Paul Gortmaker <[email protected]> | 2012-03-08 19:12:11 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2012-03-09 12:47:56 -0800 |
commit | dfe42443ea1d30c98db59b7b1f914bc147d31336 (patch) | |
tree | 479554def3fb2d90592f229e47f06e354aac1e35 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 0d263a264c4b8376ccf33248f6fac873310e5e05 (diff) |
serial: reduce number of indirections in 8250 code
The serial_8250_port struct contains within a serial_port struct
and many times one or the other, or both are in scope within
functions via a passed in arg, or via container_of.
However there are a lot of cases where we have access directly
to the port pointer, but yet go through the parent 8250_port
structure instead to get it. These should just use the port
struct directly.
Similarly there are cases where it makes sense (from a code
cleanliness point of view) to declare a local for the port
struct, so we aren't going through the parent 8250_port struct
repeatedly to get to it.
We get a small reduction in text size, but it appears that
gcc was smart enough to internally be doing most of this
already, so the readability improvement is the larger gain.
Signed-off-by: Paul Gortmaker <[email protected]>
Acked-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions