]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite05c14e68c037ac12259eaa274159ddc83888e71
treebf5cba8882865b7ab75aaa906ee2f74bb06b9cf9
parent9147daf4af10f66f2eba50a2e80ba21d10b69ecf
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