Commit 7b318b41 authored by Shivani Bhardwaj's avatar Shivani Bhardwaj Committed by Greg Kroah-Hartman

Staging: lustre: interval_tree: Remove multiple assignments

Remove multiple assignments by factorizing them.
Fix checkpatch CHECK: multiple assignments should be avoided
Signed-off-by: default avatarShivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 316bd5e0
...@@ -294,7 +294,8 @@ struct interval_node *interval_insert(struct interval_node *node, ...@@ -294,7 +294,8 @@ struct interval_node *interval_insert(struct interval_node *node,
/* link node into the tree */ /* link node into the tree */
node->in_parent = parent; node->in_parent = parent;
node->in_color = INTERVAL_RED; node->in_color = INTERVAL_RED;
node->in_left = node->in_right = NULL; node->in_left = NULL;
node->in_right = NULL;
*p = node; *p = node;
interval_insert_color(node, root); interval_insert_color(node, root);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment