Messages in this thread | | | Date | Fri, 5 Aug 2022 11:26:37 -0700 | From | Davidlohr Bueso <> | Subject | Re: [PATCH] ipc/util.c: Cleanup and improve sysvipc_find_ipc(), V3 |
| |
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@stgolabs.net>
| |