diff options
author | Manfred Spraul <manfred@colorfullife.com> | 2022-08-05 13:57:33 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-09-11 21:55:05 -0700 |
commit | 58b5c203360799e181325f3f8ce212de80ebf304 (patch) | |
tree | d78d8477f82242b2169d954e8dcc9fb411decd50 /arch/sh/configs/r7780mp_defconfig | |
parent | 765f2bf04fdaced4e7d7e94cfc3f743048629f31 (diff) | |
download | linux-stable-58b5c203360799e181325f3f8ce212de80ebf304.tar.gz linux-stable-58b5c203360799e181325f3f8ce212de80ebf304.tar.bz2 linux-stable-58b5c203360799e181325f3f8ce212de80ebf304.zip |
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/20210903052020.3265-3-manfred@colorfullife.com/
Link: https://lkml.kernel.org/r/20220805115733.104763-1-manfred@colorfullife.com
Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
Acked-by: Davidlohr Bueso <dave@stgolabs.net>
Acked-by: Waiman Long <longman@redhat.com>
Cc: "Eric W . Biederman" <ebiederm@xmission.com>
Cc: <1vier1@web.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/sh/configs/r7780mp_defconfig')
0 files changed, 0 insertions, 0 deletions