All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@gmail.com>
To: Frank van Maarseveen <frankvm@frankvm.com>
Cc: linux-kernel@vger.kernel.org, Nick Piggin <npiggin@suse.de>
Subject: Re: radix-tree.c:__lookup_slot() dead code removal
Date: Mon, 4 Dec 2006 10:26:52 +0800	[thread overview]
Message-ID: <365199208.17660@ustc.edu.cn> (raw)
Message-ID: <20061204022652.GA6669@mail.ustc.edu.cn> (raw)
In-Reply-To: <20061203170231.GA20298@janus>

On Sun, Dec 03, 2006 at 06:02:31PM +0100, Frank van Maarseveen wrote:
> --- a/lib/radix-tree.c	2006-12-03 13:23:00.000000000 +0100
> +++ b/lib/radix-tree.c	2006-12-03 17:57:03.000000000 +0100
> @@ -319,9 +319,6 @@ static inline void **__lookup_slot(struc
>  	if (index > radix_tree_maxindex(height))
>  		return NULL;
>  
> -	if (height == 0 && root->rnode)
> -		return (void **)&root->rnode;
> -
>  	shift = (height-1) * RADIX_TREE_MAP_SHIFT;
>  	slot = &root->rnode;

Acked-by: Fengguang Wu <wfg@mail.ustc.edu.cn>

  reply	other threads:[~2006-12-04  2:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-03 17:02 radix-tree.c:__lookup_slot() dead code removal Frank van Maarseveen
2006-12-04  2:26 ` Fengguang Wu [this message]
2006-12-04  2:26   ` Fengguang Wu
2006-12-04 10:18 ` Nick Piggin
2006-12-04 10:37   ` WU Fengguang
2006-12-04 10:37     ` WU Fengguang

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=365199208.17660@ustc.edu.cn \
    --to=fengguang.wu@gmail.com \
    --cc=frankvm@frankvm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=npiggin@suse.de \
    /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.