*/
static inline bool mast_sibling_rebalance_right(struct maple_subtree_state *mast)
{
- struct maple_enode *old_r = mast->orig_r->node;
- struct maple_enode *old_l = mast->orig_l->node;
+ struct maple_enode *old_r;
+ struct maple_enode *old_l;
+ old_r = mast->orig_r->node;
if (mas_next_sibling(mast->orig_r)) {
mast_rebalance_next(mast, old_r);
return true;
}
+
+ old_l = mast->orig_l->node;
if (mas_prev_sibling(mast->orig_l)) {
mast_rebalance_prev(mast, old_l);
return true;
}
+
return false;
}