Staging: lustre: interval_tree: Remove multiple assignments

Remove multiple assignments by factorizing them.
Fix checkpatch CHECK: multiple assignments should be avoided

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Shivani Bhardwaj 2015-10-19 00:17:13 +05:30 committed by Greg Kroah-Hartman
parent 316bd5e085
commit 7b318b411c

View File

@ -294,7 +294,8 @@ struct interval_node *interval_insert(struct interval_node *node,
/* link node into the tree */
node->in_parent = parent;
node->in_color = INTERVAL_RED;
node->in_left = node->in_right = NULL;
node->in_left = NULL;
node->in_right = NULL;
*p = node;
interval_insert_color(node, root);