aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorHuang Shijie <[email protected]>2009-06-16 15:33:42 -0700
committerLinus Torvalds <[email protected]>2009-06-16 19:47:49 -0700
commitb72b71c6cb6ecc564d4d5f9c512a7df269837846 (patch)
tree9923a6e1d59f92825df87cfd2bbd613d0f47a5f7 /net/lapb/lapb_in.c
parent30639b6af85a92491b22dd14c17b14ca11da60e6 (diff)
lib: do code optimization for radix_tree_lookup() and radix_tree_lookup_slot()
radix_tree_lookup() and radix_tree_lookup_slot() have much the same code except for the return value. Introduce radix_tree_lookup_element() to do the real work. /* * is_slot == 1 : search for the slot. * is_slot == 0 : search for the node. */ static void * radix_tree_lookup_element(struct radix_tree_root *root, unsigned long index, int is_slot); Signed-off-by: Huang Shijie <[email protected]> Cc: Nick Piggin <[email protected]> Cc: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions