diff options
| author | Manfred Spraul <[email protected]> | 2022-08-05 13:57:33 +0200 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-09-11 21:55:05 -0700 |
| commit | 58b5c203360799e181325f3f8ce212de80ebf304 (patch) | |
| tree | d78d8477f82242b2169d954e8dcc9fb411decd50 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 765f2bf04fdaced4e7d7e94cfc3f743048629f31 (diff) | |
ipc/util.c: cleanup and improve sysvipc_find_ipc()
sysvipc_find_ipc() can be simplified further:
- It uses a for() loop to locate the next entry in the idr.
This can be replaced with idr_get_next().
- It receives two parameters (pos - which is actually
an idr index and not a position, and new_pos, which
is really a position).
One parameter is sufficient.
Link: https://lore.kernel.org/all/[email protected]/
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Manfred Spraul <[email protected]>
Acked-by: Davidlohr Bueso <[email protected]>
Acked-by: Waiman Long <[email protected]>
Cc: "Eric W . Biederman" <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions