summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorZhengchao Shao <shaozhengchao@huawei.com>2022-09-01 03:16:17 +0200
committerJakub Kicinski <kuba@kernel.org>2022-09-03 06:24:49 +0200
commit2e5fb3223261366d1673c3827190c85a74b1aa56 (patch)
treeb8ebc5091ab098454b8594c730cfee1925b207a8 /net
parentnet: lantiq_etop: Fix return type for implementation of ndo_start_xmit (diff)
downloadlinux-2e5fb3223261366d1673c3827190c85a74b1aa56.tar.xz
linux-2e5fb3223261366d1673c3827190c85a74b1aa56.zip
net/sched: cls_api: remove redundant 0 check in tcf_qevent_init()
tcf_qevent_parse_block_index() never returns a zero block_index. Therefore, it is unnecessary to check the value of block_index in tcf_qevent_init(). Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Link: https://lore.kernel.org/r/20220901011617.14105-1-shaozhengchao@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
-rw-r--r--net/sched/cls_api.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 1ebab4b11262..5d0d57dc5cb7 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -3629,9 +3629,6 @@ int tcf_qevent_init(struct tcf_qevent *qe, struct Qdisc *sch,
if (err)
return err;
- if (!block_index)
- return 0;
-
qe->info.binder_type = binder_type;
qe->info.chain_head_change = tcf_chain_head_change_dflt;
qe->info.chain_head_change_priv = &qe->filter_chain;