···322322{323323 struct rb_node *parent;324324325325+ if (rb_parent(node) == node)326326+ return NULL;327327+325328 /* If we have a right-hand child, go down and then left as far326329 as we can. */327330 if (node->rb_right) {···350347struct rb_node *rb_prev(struct rb_node *node)351348{352349 struct rb_node *parent;350350+351351+ if (rb_parent(node) == node)352352+ return NULL;353353354354 /* If we have a left-hand child, go down and then right as far355355 as we can. */