struct drm_mm *mm = hole_node->mm;
        struct rb_node **link, *rb;
        struct drm_mm_node *parent;
-       bool leftmost = true;
+       bool leftmost;
 
        node->__subtree_last = LAST(node);
 
        } else {
                rb = NULL;
                link = &mm->interval_tree.rb_root.rb_node;
+               leftmost = true;
        }
 
        while (*link) {
                parent = rb_entry(rb, struct drm_mm_node, rb);
                if (parent->__subtree_last < node->__subtree_last)
                        parent->__subtree_last = node->__subtree_last;
-               if (node->start < parent->start)
+               if (node->start < parent->start) {
                        link = &parent->rb.rb_left;
-               else {
+               } else {
                        link = &parent->rb.rb_right;
-                       leftmost = true;
+                       leftmost = false;
                }
        }