From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from devianza.investici.org (devianza.investici.org [198.167.222.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD0F315E5BB for ; Tue, 28 Jul 2026 20:21:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.167.222.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785270077; cv=none; b=uE2qnKmsOBUXN0VyoJ+qq+EnlJQM7+SvVQ17qENkXoJJ+CvyrHn+B3F1KWmrO6nkvEugnQATTMtpPZJLcfll20h4pXATAeb+YXYN+roae6iTZB0CZhH22eMP2eNjnbgVc07OlnxwqBBaO1g5o0HO5ganZ5AFyOxZWpUB2bYBBw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785270077; c=relaxed/simple; bh=dOxs6g5jQg35ank++gPFKHeSIer58xA9gq2fzjx2Jhg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BBLmVBXPVnRACrChLL2poN7Ub464n0GSY3SywBMbpI32M3XTGHepHVAemd4/sFwSWsnVEMEw8xndKFQ+JXf6w80yeFk+RpDuNK4WOKkv3vPsNcuJcRjhaQbAlyw02N/8NkeacJeISaeA5vENIVLHITbqDOlmM0zKRh558g2LoJY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=grrlz.net; spf=pass smtp.mailfrom=grrlz.net; dkim=pass (1024-bit key) header.d=grrlz.net header.i=@grrlz.net header.b=GK9rWRNg; arc=none smtp.client-ip=198.167.222.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=grrlz.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=grrlz.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=grrlz.net header.i=@grrlz.net header.b="GK9rWRNg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=grrlz.net; s=stigmate; t=1785270066; bh=K8xRSY4KW5htwTQodE+ot0RuA5UC4mytzVUzPNs4q0U=; h=From:To:Cc:Subject:Date:From; b=GK9rWRNgl7pmcD12TBtiKEsrfDLyQ5lzbsJNhp0ySTiIyLEVHknabnYucOu0vQ+YC GtJWMWVM/C2o5V/TbyOftq5LgULa4M2lR3M1DuwAExKvqCLIseG/V5zMsa7riPRnNV yWMulj/V8kq6Ro6OyeJ8BIa46AGRtDVmqmkbr+mo= Received: from mx2.investici.org (unknown [127.0.0.1]) by devianza.investici.org (Postfix) with ESMTP id 4h8n0f5ngwz6vZN; Tue, 28 Jul 2026 20:21:06 +0000 (UTC) Received: by mx2.investici.org (Postfix) id 4h8n0f2S9kz4y43; Tue, 28 Jul 2026 20:21:06 +0000 (UTC) From: Bradley Morgan To: Balbir Singh , Andrew Morton Cc: linux-kernel@vger.kernel.org, Bradley Morgan Subject: [PATCH 0/2] taskstats: tidy up the cpumask command path Date: Tue, 28 Jul 2026 20:21:02 +0000 Message-ID: <20260728202104.17839-1-include@grrlz.net> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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