• Andrew Morton's avatar
    [PATCH] radix_tree_delete API improvement · ed49cb09
    Andrew Morton authored
    radix_tree_delete() currently returns 0 on success, -ENOENT if there was
    nothing to delete.
    
    But it is more useful to return the address of the deleted item on success
    and NULL if there was no matching item.  It can potentially save a
    lookup+delete operation.
    ed49cb09
radix-tree.c 10.4 KB