All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] taskstats: tidy up the cpumask command path
@ 2026-07-28 20:21 Bradley Morgan
  2026-07-28 20:21 ` [PATCH 1/2] taskstats: drop the dead NULL attribute check in parse() Bradley Morgan
  2026-07-28 20:21 ` [PATCH 2/2] taskstats: fold the two cpumask handlers into one Bradley Morgan
  0 siblings, 2 replies; 3+ messages in thread
From: Bradley Morgan @ 2026-07-28 20:21 UTC (permalink / raw)
  To: Balbir Singh, Andrew Morton; +Cc: linux-kernel, Bradley Morgan

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-28 20:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-28 20:21 [PATCH 0/2] taskstats: tidy up the cpumask command path Bradley Morgan
2026-07-28 20:21 ` [PATCH 1/2] taskstats: drop the dead NULL attribute check in parse() Bradley Morgan
2026-07-28 20:21 ` [PATCH 2/2] taskstats: fold the two cpumask handlers into one Bradley Morgan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.