sched/fair: fix comma operator misuse in NUMA fault accounting
PATCH 1/1 sched/fair: fix comma operator misuse in NUMA fault accounting
Replace the comma operator with separate statements when assigning NUMA fault statistics. This improves readability and follows kernel coding style.
Signed-off-by Zhan Xusheng <[email protected]>
--- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
@@ -13957,7 +13957,7 @@ void show_numa_stats(struct task_struct *p, struct seq_file *m) tpf = p->numa_faults[task_faults_idx (NUMA_MEM , node,1 )]; }if (ng) { - gsf = ng->faults[task_faults_idx (NUMA_MEM , node,0 )], + gsf = ng->faults[task_faults_idx (NUMA_MEM , node,0 )]; gpf = ng->faults[task_faults_idx (NUMA_MEM , node,1 )]; }print_numa_stats (m, node, tsf, tpf, gsf, gpf);
Signature · 1 line
2.43.0