Re: [PATCH] ipc/util.c: Cleanup and improve sysvipc_find_ipc(), V3
From: Davidlohr Bueso
Date: Fri Aug 05 2022 - 15:02:34 EST
On Fri, 05 Aug 2022, Manfred Spraul wrote:
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.
Makes sense to me.
Acked-by: Davidlohr Bueso <dave@xxxxxxxxxxxx>