[PATCH 0/2] taskstats: tidy up the cpumask command path
From: Bradley Morgan
Date: Tue Jul 28 2026 - 16:21:21 EST
Two small cleanups from reading kernel/taskstats.c. No functional change in
either one.
Patch 1 removes an unreachable NULL attribute check in parse(). Its stray
"return 1" is not an error to any caller, so had the path ever been reached
it would have registered listeners against an uninitialized cpumask.
Patch 2 folds cmd_attr_register_cpumask() and cmd_attr_deregister_cpumask()
together, since they only differed in one attribute and one action.
Bradley Morgan (2):
taskstats: drop the dead NULL attribute check in parse()
taskstats: fold the two cpumask handlers into one
kernel/taskstats.c | 40 ++++++++++++----------------------------
1 file changed, 12 insertions(+), 28 deletions(-)
--
2.47.3