]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc/mqueue: remove unnecessary rb_init_node() calls
authorMichel Lespinasse <walken@google.com>
Tue, 14 Aug 2012 03:22:38 +0000 (13:22 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 17 Aug 2012 04:55:21 +0000 (14:55 +1000)
commitfa823aaa6af1fb9adda2f2477155b3efe31e7bf1
tree9c575ed98632b454d09a985edbc92cbacab38000
parent087f0cfdeb33edd5dbc1d4801105c56c5f81b4a7
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