Patchwork [net-next,v3,03/11] htb: remove pointless first initialization of buffer and cbuffer

login
register
mail settings
Submitter Jiri Pirko
Date Feb. 9, 2013, 4:45 p.m.
Message ID <1360428312-1277-4-git-send-email-jiri@resnulli.us>
Download mbox | patch
Permalink /patch/219403/
State Changes Requested
Delegated to: David Miller
Headers show

Comments

Jiri Pirko - Feb. 9, 2013, 4:45 p.m.
these are initialized correctly couple of lines later in the function.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Eric Dumazet <edumazet@google.com>
---
 net/sched/sch_htb.c | 3 ---
 1 file changed, 3 deletions(-)

Patch

diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c
index 14a83dc..547912e9 100644
--- a/net/sched/sch_htb.c
+++ b/net/sched/sch_htb.c
@@ -1503,9 +1503,6 @@  static int htb_change_class(struct Qdisc *sch, u32 classid,
 			cl->prio = TC_HTB_NUMPRIO - 1;
 	}
 
-	cl->buffer = hopt->buffer;
-	cl->cbuffer = hopt->cbuffer;
-
 	cl->rate.rate_bps = (u64)hopt->rate.rate << 3;
 	cl->ceil.rate_bps = (u64)hopt->ceil.rate << 3;