]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: htb: remove redundant resource cleanup in htb_init()
authorZhengchao Shao <shaozhengchao@huawei.com>
Fri, 2 Sep 2022 08:34:30 +0000 (16:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Sep 2022 09:40:40 +0000 (10:40 +0100)
commit759480ec1c79e87b19cd809d7ef0b758ba80299a
tree09f06c72a5e9c66dbb299d92ce9832df5bc970a1
parente23ad0aece8b1c0351a7c04985964a548ea5b59e
net: sched: htb: remove redundant resource cleanup in htb_init()

If htb_init() fails, qdisc_create() invokes htb_destroy() to clear
resources. Therefore, remove redundant resource cleanup in htb_init().

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_htb.c