summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_htb.c
diff options
context:
space:
mode:
authorZhengchao Shao <shaozhengchao@huawei.com>2022-08-24 17:10:03 +0800
committerDavid S. Miller <davem@davemloft.net>2022-08-26 12:03:04 +0100
commit44387d1736c40a74085be354e2b5f37ca0689608 (patch)
treebf5cba8882865b7ab75aaa906ee2f74bb06b9cf9 /net/sched/sch_htb.c
parent643952f3ecace9e20b8a0c5cd1bbd7409ac2d02c (diff)
downloadlinux-stable-44387d1736c40a74085be354e2b5f37ca0689608.tar.gz
linux-stable-44387d1736c40a74085be354e2b5f37ca0689608.tar.bz2
linux-stable-44387d1736c40a74085be354e2b5f37ca0689608.zip
net: sched: remove unnecessary init of qdisc skb head
The memory allocated by using kzallloc_node and kcalloc has been cleared. Therefore, the structure members of the new qdisc are 0. So there's no need to explicitly assign a value of 0. Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_htb.c')
-rw-r--r--net/sched/sch_htb.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c
index cb5872d22ecf..dbbb276aecb3 100644
--- a/net/sched/sch_htb.c
+++ b/net/sched/sch_htb.c
@@ -1104,8 +1104,6 @@ static int htb_init(struct Qdisc *sch, struct nlattr *opt,
if (err < 0)
goto err_free_direct_qdiscs;
- qdisc_skb_head_init(&q->direct_queue);
-
if (tb[TCA_HTB_DIRECT_QLEN])
q->direct_qlen = nla_get_u32(tb[TCA_HTB_DIRECT_QLEN]);
else