linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Davidlohr Bueso <dave@stgolabs.net>
To: Manfred Spraul <manfred@colorfullife.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	"Eric W . Biederman" <ebiederm@xmission.com>,
	1vier1@web.de, Waiman Long <longman@redhat.com>
Subject: Re: [PATCH] ipc/util.c: Cleanup and improve sysvipc_find_ipc(), V3
Date: Fri, 5 Aug 2022 11:26:37 -0700	[thread overview]
Message-ID: <20220805182637.bciu7eavmhxefsc7@offworld> (raw)
In-Reply-To: <20220805115733.104763-1-manfred@colorfullife.com>

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>

      reply	other threads:[~2022-08-05 19:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-05 11:57 [PATCH] ipc/util.c: Cleanup and improve sysvipc_find_ipc(), V3 Manfred Spraul
2022-08-05 18:26 ` Davidlohr Bueso [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220805182637.bciu7eavmhxefsc7@offworld \
    --to=dave@stgolabs.net \
    --cc=1vier1@web.de \
    --cc=akpm@linux-foundation.org \
    --cc=ebiederm@xmission.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=longman@redhat.com \
    --cc=manfred@colorfullife.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).