Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35539105rwd; Mon, 10 Jul 2023 08:51:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlHbyiMfm/1/AQacOnLVSvVX4zQjXSNlKatmPPxRsnmQjOI1U/g3tcgaWRIBGfCRTEuyh62C X-Received: by 2002:a05:6870:9a1f:b0:1b0:15ca:479 with SMTP id fo31-20020a0568709a1f00b001b015ca0479mr15615474oab.55.1689004282574; Mon, 10 Jul 2023 08:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689004282; cv=none; d=google.com; s=arc-20160816; b=nOo9JEJ8hPJv/0vvKVKbif/jIsFxE8G5AH3et8xh+Vxj60KFNfaXVuJGQ0l1Ljqtfp /GwQRYx4gbwJVLe887PRGrk2wV0a/Dwxma19VKf0pHvUlpiI3tkdt2HU+lrmToNexvnH woLWjyOor3OBxflv8KWbPfvIX37fcmxuI2hHBeLtzwW9/0zxz8ndqveDuyRsCbLuwLQP 8UMQoO2KDNKimQN4xK7D1QkaiBwpHbdmw8NF0H/3RDlqX507G1GiQIW17zuhjp/hVDPh asDpQdEPUCbA4UsHxm5VVLaccbanqWbWValTph0O62odAtLYGEoDkB793NCim8p+Azpb iXlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Csf/O53K061Tg2O8DUcAmJ7TXCxHkY96GEDUe2hk864=; fh=izlvDyQkmvIqmvflhMwH9lgqT5FEe/tMPVrQHVutqGM=; b=CCV4xBaGZqCygCNazVaANI9dYCIwVNfJDBg72RzGthX8sIe6ezvT+E6f6gVkgGw2lU vsiVLGbxv47SnvO+hCVvMyk1ByKc1ARBK++t4pzSPrnW8n1s8YOHGtY8d50NLz20BXkN rh4n1ve+XmWumiZExsmemLR0J7Fz5yrlbtw7WwDCEH5qjb6l1YdD1BVEsFe4y0zrVDuD 55WLWmuiUKNfiBALdiHZ/nTeq5MNGDcx/eNrqd/nWEm4qIXF/0PjW4OxVc/CgXpyf0uj RMm4niGinzKDQqZ+K9aqUp8obbVFWzYtHa5MVKieNJbggWy5NTmPv7K+rIzbZyRpkoN/ sQ4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=RZe3jCqn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a17090a728b00b0025bea0a396asi7542133pjg.6.2023.07.10.08.51.09; Mon, 10 Jul 2023 08:51:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=RZe3jCqn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231786AbjGJPqR (ORCPT + 99 others); Mon, 10 Jul 2023 11:46:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230386AbjGJPqQ (ORCPT ); Mon, 10 Jul 2023 11:46:16 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22325B1; Mon, 10 Jul 2023 08:46:15 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id CD4AE21B06; Mon, 10 Jul 2023 15:46:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1689003973; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Csf/O53K061Tg2O8DUcAmJ7TXCxHkY96GEDUe2hk864=; b=RZe3jCqnQgAh5tdMl3sCRcNfotwRAgzSOz2BVkOFs9k4b/FZP5ITr5hQIt91PoxufhAG42 wL7ZJbjnQQfjKSEkclDuqxso6t318xk/U9jWnV3Zats3gJ5tZfrLx7AZpvzdZ6tO1ZsfOo Zj+zO02nA6M0SGiuqFSULOcz9ZbN/7c= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id AC1861361C; Mon, 10 Jul 2023 15:46:13 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id QZ0NKcUnrGTmagAAMHmgww (envelope-from ); Mon, 10 Jul 2023 15:46:13 +0000 Date: Mon, 10 Jul 2023 17:46:12 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Miaohe Lin Cc: tj@kernel.org, hannes@cmpxchg.org, lizefan.x@bytedance.com, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cgroup: remove unneeded return value of cgroup_rm_cftypes_locked() Message-ID: References: <20230701073856.2095425-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kyoxkof3brdp3vbp" Content-Disposition: inline In-Reply-To: <20230701073856.2095425-1-linmiaohe@huawei.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --kyoxkof3brdp3vbp Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi. On Sat, Jul 01, 2023 at 03:38:56PM +0800, Miaohe Lin = wrote: > The return value of cgroup_rm_cftypes_locked() is always 0. So remove > it to simplify the code. No functional change intended. I'd add a comment that it builds upon cgroup_addrm_files()'s: > For removals, this function never fails. > Signed-off-by: Miaohe Lin > --- > kernel/cgroup/cgroup.c | 9 +++------ > 1 file changed, 3 insertions(+), 6 deletions(-) Reviewed-by: Michal Koutn=FD --kyoxkof3brdp3vbp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQpEWyjXuwGT2dDBqAGvrMr/1gcjgUCZKwnwgAKCRAGvrMr/1gc jnYVAPwMLLOEYIeph0SWge4e4A3F5ye6RxReGFqVGXVEK09OngD+J+R/PCIA08hT CiKosuzZJmwkLRKsTW4SlJ9cUwbSNQU= =VAXP -----END PGP SIGNATURE----- --kyoxkof3brdp3vbp--