| 277 | * the minimum element in the tree. It's commonly used for ordered traversal starting point. |
| 278 | */ |
| 279 | rt_weak struct lwp_avl_struct* lwp_map_find_first(struct lwp_avl_struct* ptree) |
| 280 | { |
| 281 | if (ptree == AVL_EMPTY) |
| 282 | { |
| 283 | return (struct lwp_avl_struct *)0; |
| 284 | } |
| 285 | while (1) |
| 286 | { |
| 287 | if (!ptree->avl_left) |
| 288 | { |
| 289 | break; |
| 290 | } |
| 291 | ptree = ptree->avl_left; |
| 292 | } |
| 293 | return ptree; |
| 294 | } |
no outgoing calls
no test coverage detected