Skip to contentSkip to conversation

sched/fair: fix comma operator misuse in NUMA fault accounting

PATCH Superseded Zhan Xusheng 1 participant 1 message Jan 24 Scheduler

lore
Share & tools
lore
#0 lore raw

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.

---
 kernel/sched/fair.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
index e71302282671..437ac95c317c 100644
@@ -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