aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/ldlm/interval_tree.c
diff options
context:
space:
mode:
authorShivani Bhardwaj <shivanib134@gmail.com>2015-10-19 00:17:13 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-24 18:41:09 -0700
commit7b318b411cc9dcc6309eaeba56ff822979e2b15c (patch)
tree982c922974c1a75f3a0d8c4875ad419c2f1950e2 /drivers/staging/lustre/lustre/ldlm/interval_tree.c
parentstaging: lustre: make sptlrpc_flavor_has_bulk return boolean (diff)
downloadlinux-dev-7b318b411cc9dcc6309eaeba56ff822979e2b15c.tar.xz
linux-dev-7b318b411cc9dcc6309eaeba56ff822979e2b15c.zip
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>
Diffstat (limited to 'drivers/staging/lustre/lustre/ldlm/interval_tree.c')
-rw-r--r--drivers/staging/lustre/lustre/ldlm/interval_tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/ldlm/interval_tree.c b/drivers/staging/lustre/lustre/ldlm/interval_tree.c
index 3d2d85ba8a26..39b571721881 100644
--- a/drivers/staging/lustre/lustre/ldlm/interval_tree.c
+++ b/drivers/staging/lustre/lustre/ldlm/interval_tree.c
@@ -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);