projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2027d1
)
net: sched: simplify the qdisc_leaf code
author
Tonghao Zhang
<
[email protected]
>
Thu, 13 Dec 2018 08:43:23 +0000
(
00:43
-0800)
committer
David S. Miller
<
[email protected]
>
Sat, 15 Dec 2018 19:37:32 +0000
(11:37 -0800)
Except for returning, the var leaf is not
used in the qdisc_leaf(). For simplicity, remove it.
Signed-off-by: Tonghao Zhang <
[email protected]
>
Acked-by: Cong Wang <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/sched/sch_api.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_api.c
b/net/sched/sch_api.c
index 9c88cec7e8a20f9f30a9f4113e34cf96084ee393..187a57e7d601dcce03b07c06e077f0eb366c3df2 100644
(file)
--- a/
net/sched/sch_api.c
+++ b/
net/sched/sch_api.c
@@
-335,7
+335,6
@@
out:
static struct Qdisc *qdisc_leaf(struct Qdisc *p, u32 classid)
{
unsigned long cl;
- struct Qdisc *leaf;
const struct Qdisc_class_ops *cops = p->ops->cl_ops;
if (cops == NULL)
@@
-344,8
+343,7
@@
static struct Qdisc *qdisc_leaf(struct Qdisc *p, u32 classid)
if (cl == 0)
return NULL;
- leaf = cops->leaf(p, cl);
- return leaf;
+ return cops->leaf(p, cl);
}
/* Find queueing discipline by name */