]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net/sched: act_ife: convert comma to semicolon
authorChen Ni <nichen@iscas.ac.cn>
Wed, 12 Nov 2025 07:27:09 +0000 (15:27 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 14 Nov 2025 01:22:00 +0000 (17:22 -0800)
Replace comma between expressions with semicolons.

Using a ',' in place of a ';' can have unintended side effects.
Although that is not the case here, it is seems best to use ';'
unless ',' is intended.

Found by inspection.
No functional change intended.
Compile tested only.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Link: https://patch.msgid.link/20251112072709.73755-1-nichen@iscas.ac.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/act_ife.c

index 7c6975632fc2ece83fe8e1dc007b82b3ad7325c7..1dfdda6c2d4c51feb3f9db4e26e72c8e4a515687 100644 (file)
@@ -649,9 +649,9 @@ static int tcf_ife_dump(struct sk_buff *skb, struct tc_action *a, int bind,
 
        memset(&opt, 0, sizeof(opt));
 
-       opt.index = ife->tcf_index,
-       opt.refcnt = refcount_read(&ife->tcf_refcnt) - ref,
-       opt.bindcnt = atomic_read(&ife->tcf_bindcnt) - bind,
+       opt.index = ife->tcf_index;
+       opt.refcnt = refcount_read(&ife->tcf_refcnt) - ref;
+       opt.bindcnt = atomic_read(&ife->tcf_bindcnt) - bind;
 
        spin_lock_bh(&ife->tcf_lock);
        opt.action = ife->tcf_action;