All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Aloni <da-x@gmx.net>
To: Brian Gerst <bgerst@didntduck.org>
Cc: Linus Torvalds <torvalds@transmeta.com>,
	Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] More list_del_init cleanups
Date: Sat, 8 Jun 2002 05:40:30 +0300	[thread overview]
Message-ID: <20020608024030.GA18037@callisto.yi.org> (raw)
In-Reply-To: <3CFEDE73.80202@didntduck.org>

On Thu, Jun 06, 2002 at 12:00:51AM -0400, Brian Gerst wrote:
> Clean up some other instances of list_del + INIT_LIST_HEAD.
> 
> --
> 				Brian Gerst
[snip]
> -		        list_del(&entry->hash);
> -			INIT_LIST_HEAD(&entry->hash);
> +		        list_del_init(&entry->hash);
>  			list_del(&entry->list);
>  			list_add(&entry->list, dispose);
>  			continue;


If we are at it, how about replacing:

	list_del(&entry->list);
	list_add(&entry->list, dispose);
	
with something like:

	list_del_add(&entry->list, dispose);
	
	
-- 
Dan Aloni
da-x@gmx.net

  reply	other threads:[~2002-06-08  2:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-06  4:00 [PATCH] More list_del_init cleanups Brian Gerst
2002-06-08  2:40 ` Dan Aloni [this message]
2002-06-08 23:30   ` Linus Torvalds
2002-06-08 23:49     ` Thunder from the hill
2002-06-08 23:59       ` Linus Torvalds
2002-06-09  0:33         ` Thunder from the hill
2002-06-09  0:37           ` Linus Torvalds
2002-06-09  0:41             ` Thunder from the hill
2002-06-09  2:42     ` Dan Aloni

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=20020608024030.GA18037@callisto.yi.org \
    --to=da-x@gmx.net \
    --cc=bgerst@didntduck.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.