lkml.org 
[lkml]   [2022]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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>

\
 
 \ /
  Last update: 2022-08-05 21:03    [W:0.041 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site