summaryrefslogtreecommitdiffstats
path: root/net/sched/cls_api.c
diff options
context:
space:
mode:
authorMatthew Wilcox2017-11-28 15:48:43 +0100
committerMatthew Wilcox2018-02-06 22:40:31 +0100
commit9c160941403ba833c8e67981806ccae73ff7aca7 (patch)
tree0c84ab081d997296163970f22097a981c6a3ca37 /net/sched/cls_api.c
parentIDR test suite: Check handling negative end correctly (diff)
downloadkernel-qcow2-linux-9c160941403ba833c8e67981806ccae73ff7aca7.tar.gz
kernel-qcow2-linux-9c160941403ba833c8e67981806ccae73ff7aca7.tar.xz
kernel-qcow2-linux-9c160941403ba833c8e67981806ccae73ff7aca7.zip
idr: Delete idr_remove_ext function
Simply changing idr_remove's 'id' argument to 'unsigned long' suffices for all callers. Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Diffstat (limited to 'net/sched/cls_api.c')
-rw-r--r--net/sched/cls_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index bcb4ccb5f894..6d0e9bc4c782 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -393,7 +393,7 @@ static void tcf_block_remove(struct tcf_block *block, struct net *net)
{
struct tcf_net *tn = net_generic(net, tcf_net_id);
- idr_remove_ext(&tn->idr, block->index);
+ idr_remove(&tn->idr, block->index);
}
static struct tcf_block *tcf_block_create(struct net *net, struct Qdisc *q,