]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ipc/mqueue: remove unnecessary rb_init_node() calls
authorMichel Lespinasse <walken@google.com>
Sat, 21 Jul 2012 00:54:54 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:53:19 +0000 (13:53 +1000)
commit90930d8f6be457217128dc1cafdc30077b87795c
tree56e8b98dc01dadfed1d9688814c1eebbf1211780
parent88c84425c0b40388709e3b92a02655b73c83ce0b
ipc/mqueue: remove unnecessary rb_init_node() calls

d6629859 ("ipc/mqueue: improve performance of send/recv") and ce2d52cc
("ipc/mqueue: add rbtree node caching support") introduced an rbtree of
message priorities, and usage of rb_init_node() to initialize the
corresponding nodes.  As it turns out, rb_init_node() is unnecessary here,
as the nodes are fully initialized on insertion by rb_link_node() and the
code doesn't access nodes that aren't inserted on the rbtree.

Removing the rb_init_node() calls as I removed that function during
rbtree API cleanups (the only other use of it was in a place that similarly
didn't require it).

Signed-off-by: Michel Lespinasse <walken@google.com>
Acked-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
ipc/mqueue.c