diff options
author | Matthew Wilcox <mawilcox@microsoft.com> | 2017-11-28 17:56:36 +0300 |
---|---|---|
committer | Matthew Wilcox <mawilcox@microsoft.com> | 2018-02-07 00:40:31 +0300 |
commit | 234a4624efe5629a777b4c00dbdf41dd8b7332db (patch) | |
tree | 887bef7403ebe2d39c7d1afc33bd22d72c276d76 /net/sched/cls_u32.c | |
parent | 9c160941403ba833c8e67981806ccae73ff7aca7 (diff) | |
download | linux-234a4624efe5629a777b4c00dbdf41dd8b7332db.tar.xz |
idr: Delete idr_replace_ext function
Changing idr_replace's 'id' argument to 'unsigned long' works for all
callers. Callers which passed a negative ID now get -ENOENT instead of
-EINVAL. No callers relied on this error value.
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Diffstat (limited to 'net/sched/cls_u32.c')
-rw-r--r-- | net/sched/cls_u32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c index bd55ed783cb1..5b256da985b1 100644 --- a/net/sched/cls_u32.c +++ b/net/sched/cls_u32.c @@ -848,7 +848,7 @@ static void u32_replace_knode(struct tcf_proto *tp, struct tc_u_common *tp_c, if (pins->handle == n->handle) break; - idr_replace_ext(&ht->handle_idr, n, n->handle); + idr_replace(&ht->handle_idr, n, n->handle); RCU_INIT_POINTER(n->next, pins->next); rcu_assign_pointer(*ins, n); } |