Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bdd6998b authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

htb: remove pointless first initialization of buffer and cbuffer



These are initialized correctly a couple of lines later in the
function.

Signed-off-by: default avatarJiri Pirko <jiri@resnulli.us>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 324f5aa5
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -1503,9 +1503,6 @@ static int htb_change_class(struct Qdisc *sch, u32 classid,
			cl->prio = TC_HTB_NUMPRIO - 1;
			cl->prio = TC_HTB_NUMPRIO - 1;
	}
	}


	cl->buffer = hopt->buffer;
	cl->cbuffer = hopt->cbuffer;

	cl->rate.rate_bps = (u64)hopt->rate.rate << 3;
	cl->rate.rate_bps = (u64)hopt->rate.rate << 3;
	cl->ceil.rate_bps = (u64)hopt->ceil.rate << 3;
	cl->ceil.rate_bps = (u64)hopt->ceil.rate << 3;