From: Shivani Bhardwaj Date: Sun, 18 Oct 2015 18:47:13 +0000 (+0530) Subject: Staging: lustre: interval_tree: Remove multiple assignments X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7b318b411cc9dcc6309eaeba56ff822979e2b15c;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- 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);