diff options
author | Shivani Bhardwaj <shivanib134@gmail.com> | 2015-10-19 00:17:13 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-24 18:41:09 -0700 |
commit | 7b318b411cc9dcc6309eaeba56ff822979e2b15c (patch) | |
tree | 982c922974c1a75f3a0d8c4875ad419c2f1950e2 /drivers/staging | |
parent | 316bd5e085cbd38176a7c1ea100416322bc1633f (diff) |
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')
-rw-r--r-- | drivers/staging/lustre/lustre/ldlm/interval_tree.c | 3 |
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); |