diff options
-rw-r--r-- | lib/idr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -146,8 +146,8 @@ EXPORT_SYMBOL(idr_get_next_ext); | |||
146 | * idr_alloc() and idr_remove() (as long as the ID being removed is not | 146 | * idr_alloc() and idr_remove() (as long as the ID being removed is not |
147 | * the one being replaced!). | 147 | * the one being replaced!). |
148 | * | 148 | * |
149 | * Returns: 0 on success. %-ENOENT indicates that @id was not found. | 149 | * Returns: the old value on success. %-ENOENT indicates that @id was not |
150 | * %-EINVAL indicates that @id or @ptr were not valid. | 150 | * found. %-EINVAL indicates that @id or @ptr were not valid. |
151 | */ | 151 | */ |
152 | void *idr_replace(struct idr *idr, void *ptr, int id) | 152 | void *idr_replace(struct idr *idr, void *ptr, int id) |
153 | { | 153 | { |