diff options
| author | Alex Elder <elder@linaro.org> | 2021-06-10 22:23:02 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-06-11 00:50:08 +0300 |
| commit | ce05a9f39607623362aea9147c3dfab7a9f94ccb (patch) | |
| tree | 7f13803bd0f6ce300d334532140b0b20e05c7946 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 8cc7ebbf5f6e8ca825dba4d0180329857c997c40 (diff) | |
| download | linux-ce05a9f39607623362aea9147c3dfab7a9f94ccb.tar.xz | |
net: ipa: clean up header memory validation
Do some general cleanup in ipa_cmd_header_valid():
- Delay assigning the mem variable until just before it's used.
- Assign the maximum offset and size values together.
- Improve comments explaining the single range of memory being
made up of a modem portion and an AP portion.
- Record the offset of the combined range in a local variable.
- Do the initial size assignment right after assigning the offset.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
