Skip to content

taskstats: tidy up the cpumask command path

Bradley Morgan lkml 1 version Applied

Status from this message: [merged mm-nonmm-stable] taskstats-fold-the-two-cpumask-handlers-into-one.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2taskstats: drop the dead NULL attribute check in parse()kernel/taskstats.c+0 -20 repliesApplied
2/2taskstats: fold the two cpumask handlers into onekernel/taskstats.c+12 -260 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] taskstats: tidy up the cpumask command path

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(-)
Signature · 1 line
2.47.3