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:
b592843
)
net: sched: red: remove unnecessary red_dump_offload_stats parameter
author
Jakub Kicinski
<
[email protected]
>
Thu, 8 Nov 2018 01:33:35 +0000
(17:33 -0800)
committer
David S. Miller
<
[email protected]
>
Fri, 9 Nov 2018 00:19:47 +0000
(16:19 -0800)
Offload dump helper does not use opt parameter, remove it.
Signed-off-by: Jakub Kicinski <
[email protected]
>
Reviewed-by: John Hurley <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/sched/sch_red.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_red.c
b/net/sched/sch_red.c
index d5e441194397857f0ec147d8ec589bd38b29c5d4..2bf1d2fabc482adcce261d8ec7a625de55b487f6 100644
(file)
--- a/
net/sched/sch_red.c
+++ b/
net/sched/sch_red.c
@@
-279,7
+279,7
@@
static int red_init(struct Qdisc *sch, struct nlattr *opt,
return red_change(sch, opt, extack);
}
-static int red_dump_offload_stats(struct Qdisc *sch
, struct tc_red_qopt *opt
)
+static int red_dump_offload_stats(struct Qdisc *sch)
{
struct tc_red_qopt_offload hw_stats = {
.command = TC_RED_STATS,
@@
-309,7
+309,7
@@
static int red_dump(struct Qdisc *sch, struct sk_buff *skb)
};
int err;
- err = red_dump_offload_stats(sch
, &opt
);
+ err = red_dump_offload_stats(sch);
if (err)
goto nla_put_failure;