linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] radix_tree_extend()
@ 2003-02-08 23:37 Szabolcs Berecz
  0 siblings, 0 replies; only message in thread
From: Szabolcs Berecz @ 2003-02-08 23:37 UTC (permalink / raw)
  To: linux-kernel


No need to check root->rnode in the loop. In the loop it remains nonzero.

Where should I send this patch?

Bye,
Szabi


--- linux-2.5.59/lib/radix-tree.c.orig	Sat Jan 25 19:28:22 2003
+++ linux-2.5.59/lib/radix-tree.c	Sat Feb  8 22:24:16 2003
@@ -154,8 +154,7 @@

 			/* Increase the height.  */
 			node->slots[0] = root->rnode;
-			if (root->rnode)
-				node->count = 1;
+			node->count = 1;
 			root->rnode = node;
 			root->height++;
 		} while (height > root->height);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-08 23:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-08 23:37 [PATCH] radix_tree_extend() Szabolcs Berecz

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).