net: sched: remove unnecessary init of qdisc skb head
authorZhengchao Shao <shaozhengchao@huawei.com>
Wed, 24 Aug 2022 09:10:03 +0000 (17:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Aug 2022 11:03:04 +0000 (12:03 +0100)
commit44387d1736c40a74085be354e2b5f37ca0689608
treebf5cba8882865b7ab75aaa906ee2f74bb06b9cf9
parent643952f3ecace9e20b8a0c5cd1bbd7409ac2d02c
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>
include/net/sch_generic.h
net/sched/sch_generic.c
net/sched/sch_htb.c