From: Bradley Morgan <include@grrlz.net>
To: Balbir Singh <bsingharora@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, Bradley Morgan <include@grrlz.net>
Subject: [PATCH 0/2] taskstats: tidy up the cpumask command path
Date: Tue, 28 Jul 2026 20:21:02 +0000 [thread overview]
Message-ID: <20260728202104.17839-1-include@grrlz.net> (raw)
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
next reply other threads:[~2026-07-28 20:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-28 20:21 Bradley Morgan [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260728202104.17839-1-include@grrlz.net \
--to=include@grrlz.net \
--cc=akpm@linux-foundation.org \
--cc=bsingharora@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.