diff options
author | Julia Lawall <Julia.Lawall@inria.fr> | 2020-01-01 18:49:44 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-02 16:31:03 -0800 |
commit | a02158d62faa19d3cad8caf481253998a6c47934 (patch) | |
tree | 986f4040642244f961c9adbd7b99b3d58caf7504 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 6485f9ae3b96edeb2513528a6ad4fd77ee7bafc2 (diff) |
fsl/fman: use resource_size
Use resource_size rather than a verbose computation on
the end and start fields.
The semantic patch that makes these changes is as follows:
(http://coccinelle.lip6.fr/)
<smpl>
@@ struct resource ptr; @@
- (ptr.end + 1 - ptr.start)
+ resource_size(&ptr)
@@ struct resource *ptr; @@
- (ptr->end + 1 - ptr->start)
+ resource_size(ptr)
</smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions