Commit ac25f630 authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller

[PKT_SCHED]: Remove bogus lock and make cls_set_class return unsigned long.

Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f2b9da1a
...@@ -28,14 +28,12 @@ __cls_set_class(unsigned long *clp, unsigned long cl) ...@@ -28,14 +28,12 @@ __cls_set_class(unsigned long *clp, unsigned long cl)
return old_cl; return old_cl;
} }
static inline long static inline unsigned long
cls_set_class(struct tcf_proto *tp, unsigned long *clp, cls_set_class(struct tcf_proto *tp, unsigned long *clp,
unsigned long cl) unsigned long cl)
{ {
unsigned long old_cl; unsigned long old_cl;
qdisc_lock_tree(tp->q->dev);
tcf_tree_lock(tp); tcf_tree_lock(tp);
old_cl = __cls_set_class(clp, cl); old_cl = __cls_set_class(clp, cl);
tcf_tree_unlock(tp); tcf_tree_unlock(tp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment