summaryrefslogtreecommitdiff
path: root/lib/idr.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2017-10-06 11:46:32 +0200
committerJohannes Berg <johannes.berg@intel.com>2017-10-06 11:46:55 +0200
commit753d179ad001b25425beb977d00f2531540e7d42 (patch)
treede61b9e3c86b71e9a654cea002b188f90b1f8ef6 /lib/idr.c
parent503c1fb98ba3859c13863957c7c65c92371a9e50 (diff)
parentcc71b7b071192ac1c288e272fdc3f3877eb96663 (diff)
downloadlinux-753d179ad001b25425beb977d00f2531540e7d42.tar.gz
linux-753d179ad001b25425beb977d00f2531540e7d42.tar.xz
Merge remote-tracking branch 'net-next/master' into mac80211-next
Merging this brings in the timer_setup() change, which allows me to apply Kees's mac80211 changes for it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'lib/idr.c')
-rw-r--r--lib/idr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/idr.c b/lib/idr.c
index f9adf4805fd7..edd9b2be1651 100644
--- a/lib/idr.c
+++ b/lib/idr.c
@@ -146,8 +146,8 @@ EXPORT_SYMBOL(idr_get_next_ext);
* idr_alloc() and idr_remove() (as long as the ID being removed is not
* the one being replaced!).
*
- * Returns: 0 on success. %-ENOENT indicates that @id was not found.
- * %-EINVAL indicates that @id or @ptr were not valid.
+ * Returns: the old value on success. %-ENOENT indicates that @id was not
+ * found. %-EINVAL indicates that @id or @ptr were not valid.
*/
void *idr_replace(struct idr *idr, void *ptr, int id)
{