Skip to content

Commit 2e5fb32

Browse files
zhengchaoshaokuba-moo
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c8ef3c9 commit 2e5fb32

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

net/sched/cls_api.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3629,9 +3629,6 @@ int tcf_qevent_init(struct tcf_qevent *qe, struct Qdisc *sch,
36293629
if (err)
36303630
return err;
36313631

3632-
if (!block_index)
3633-
return 0;
3634-
36353632
qe->info.binder_type = binder_type;
36363633
qe->info.chain_head_change = tcf_chain_head_change_dflt;
36373634
qe->info.chain_head_change_priv = &qe->filter_chain;

0 commit comments

Comments
 (0)