mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
net: sched: simplify the qdisc_leaf code
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]>
This commit is contained in:
parent
c2027d1e17
commit
2561f97267
1 changed files with 1 additions and 3 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue