aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/idr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/idr.c b/lib/idr.c
index 082778cf883e..f9adf4805fd7 100644
--- a/lib/idr.c
+++ b/lib/idr.c
@@ -151,7 +151,7 @@ EXPORT_SYMBOL(idr_get_next_ext);
151 */ 151 */
152void *idr_replace(struct idr *idr, void *ptr, int id) 152void *idr_replace(struct idr *idr, void *ptr, int id)
153{ 153{
154 if (WARN_ON_ONCE(id < 0)) 154 if (id < 0)
155 return ERR_PTR(-EINVAL); 155 return ERR_PTR(-EINVAL);
156 156
157 return idr_replace_ext(idr, ptr, id); 157 return idr_replace_ext(idr, ptr, id);