diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2022-08-24 17:10:03 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-08-26 12:03:04 +0100 |
commit | 44387d1736c40a74085be354e2b5f37ca0689608 (patch) | |
tree | bf5cba8882865b7ab75aaa906ee2f74bb06b9cf9 /net/sched/sch_generic.c | |
parent | 643952f3ecace9e20b8a0c5cd1bbd7409ac2d02c (diff) | |
download | linux-44387d1736c40a74085be354e2b5f37ca0689608.tar.gz |
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_generic.c')
-rw-r--r-- | net/sched/sch_generic.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index 99b697ad2b98..8d25b41d22ec 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c @@ -941,7 +941,6 @@ struct Qdisc *qdisc_alloc(struct netdev_queue *dev_queue, goto errout; __skb_queue_head_init(&sch->gso_skb); __skb_queue_head_init(&sch->skb_bad_txq); - qdisc_skb_head_init(&sch->q); gnet_stats_basic_sync_init(&sch->bstats); spin_lock_init(&sch->q.lock); |