projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8ef3c9
)
net/sched: cls_api: remove redundant 0 check in tcf_qevent_init()
author
Zhengchao Shao
<shaozhengchao@huawei.com>
Thu, 1 Sep 2022 01:16:17 +0000
(09:16 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Sat, 3 Sep 2022 04:24:49 +0000
(21:24 -0700)
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>
net/sched/cls_api.c
patch
|
blob
|
history
diff --git
a/net/sched/cls_api.c
b/net/sched/cls_api.c
index 1ebab4b112623ee4555e08648a1e400ea559bc67..5d0d57dc5cb7e9e19c3e4c88f85c62a1ade91b43 100644
(file)
--- 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;