Lines Matching refs:to_delete
164 struct bt_node_t *to_delete = NULL, *to_delete_son = NULL; in bt_delete() local
166 to_delete = this_node; in bt_delete()
169 to_delete = bt_get_minimum(this_node->right); in bt_delete()
172 this_node->value = to_delete->value; in bt_delete()
175 if (to_delete->left != NULL) in bt_delete()
176 to_delete_son = to_delete->left; in bt_delete()
178 to_delete_son = to_delete->right; in bt_delete()
181 to_delete_son->parent = to_delete->parent; in bt_delete()
183 if (to_delete->parent == NULL) in bt_delete()
187 if (to_delete->parent->left == to_delete) in bt_delete()
188 to_delete->parent->left = to_delete_son; in bt_delete()
190 to_delete->parent->right = to_delete_son; in bt_delete()
195 kfree(to_delete); in bt_delete()