Commit 490f4dbc authored by Rashika Kheria's avatar Rashika Kheria Committed by Greg Kroah-Hartman

Staging: lustre: Fix code indentation for conditional statements

This patch fixes the following checkpatch.pl warning in lustre/ldlm/interval_tree.c-
WARNING: suspect code indent for conditional statements
Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: default avatarPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ad0a75b4
...@@ -428,7 +428,7 @@ static void interval_erase_color(struct interval_node *node, ...@@ -428,7 +428,7 @@ static void interval_erase_color(struct interval_node *node,
if (node_is_black_or_0(tmp->in_right)) { if (node_is_black_or_0(tmp->in_right)) {
struct interval_node *o_left; struct interval_node *o_left;
if ((o_left = tmp->in_left)) if ((o_left = tmp->in_left))
o_left->in_color = INTERVAL_BLACK; o_left->in_color = INTERVAL_BLACK;
tmp->in_color = INTERVAL_RED; tmp->in_color = INTERVAL_RED;
__rotate_right(tmp, root); __rotate_right(tmp, root);
tmp = parent->in_right; tmp = parent->in_right;
...@@ -436,7 +436,7 @@ static void interval_erase_color(struct interval_node *node, ...@@ -436,7 +436,7 @@ static void interval_erase_color(struct interval_node *node,
tmp->in_color = parent->in_color; tmp->in_color = parent->in_color;
parent->in_color = INTERVAL_BLACK; parent->in_color = INTERVAL_BLACK;
if (tmp->in_right) if (tmp->in_right)
tmp->in_right->in_color = INTERVAL_BLACK; tmp->in_right->in_color = INTERVAL_BLACK;
__rotate_left(parent, root); __rotate_left(parent, root);
node = *root; node = *root;
break; break;
...@@ -458,7 +458,7 @@ static void interval_erase_color(struct interval_node *node, ...@@ -458,7 +458,7 @@ static void interval_erase_color(struct interval_node *node,
if (node_is_black_or_0(tmp->in_left)) { if (node_is_black_or_0(tmp->in_left)) {
struct interval_node *o_right; struct interval_node *o_right;
if ((o_right = tmp->in_right)) if ((o_right = tmp->in_right))
o_right->in_color = INTERVAL_BLACK; o_right->in_color = INTERVAL_BLACK;
tmp->in_color = INTERVAL_RED; tmp->in_color = INTERVAL_RED;
__rotate_left(tmp, root); __rotate_left(tmp, root);
tmp = parent->in_left; tmp = parent->in_left;
...@@ -545,7 +545,7 @@ void interval_erase(struct interval_node *node, ...@@ -545,7 +545,7 @@ void interval_erase(struct interval_node *node,
update_maxhigh(child ? : parent, node->in_max_high); update_maxhigh(child ? : parent, node->in_max_high);
update_maxhigh(node, old->in_max_high); update_maxhigh(node, old->in_max_high);
if (parent == old) if (parent == old)
parent = node; parent = node;
goto color; goto color;
} }
parent = node->in_parent; parent = node->in_parent;
......
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