gpio: ep93xx: Fix port F hwirq numbers in handler
[platform/kernel/linux-starfive.git] / lib / maple_tree.c
index df352f6..fe21bf2 100644 (file)
@@ -2989,7 +2989,9 @@ static int mas_spanning_rebalance(struct ma_state *mas,
        mast->free = &free;
        mast->destroy = &destroy;
        l_mas.node = r_mas.node = m_mas.node = MAS_NONE;
-       if (!(mast->orig_l->min && mast->orig_r->max == ULONG_MAX) &&
+
+       /* Check if this is not root and has sufficient data.  */
+       if (((mast->orig_l->min != 0) || (mast->orig_r->max != ULONG_MAX)) &&
            unlikely(mast->bn->b_end <= mt_min_slots[mast->bn->type]))
                mast_spanning_rebalance(mast);