Staging: lustre: interval_tree: Remove multiple assignments
authorShivani Bhardwaj <shivanib134@gmail.com>
Sun, 18 Oct 2015 18:47:13 +0000 (00:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 01:41:09 +0000 (18:41 -0700)
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>
drivers/staging/lustre/lustre/ldlm/interval_tree.c

index 3d2d85b..39b5717 100644 (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);