diff options
-rw-r--r-- | lib/idr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -151,7 +151,7 @@ EXPORT_SYMBOL(idr_get_next_ext); | |||
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 | { |
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); |