]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc/mqueue: remove unnecessary rb_init_node() calls
authorMichel Lespinasse <walken@google.com>
Wed, 26 Sep 2012 01:33:28 +0000 (11:33 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 27 Sep 2012 07:26:06 +0000 (17:26 +1000)
commit8dca532a2c20a708c9e4f80ed28c36cd45fa8938
tree3fa8e87b7c13e47f227af906c40c2c75cc36a3ef
parentb094059696f0b566486a95c0e1c22309210f21d4
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