Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1351098rwi; Thu, 13 Oct 2022 12:24:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4R/lHCb6ac9YTN76ZP/xqKsNWoMuHfCiICLn+Xkbpf+w83EJLft3e4ygLWZRs1JoYBrERZ X-Received: by 2002:a17:902:e88e:b0:183:dcb7:c4fc with SMTP id w14-20020a170902e88e00b00183dcb7c4fcmr1228247plg.32.1665689089227; Thu, 13 Oct 2022 12:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665689089; cv=none; d=google.com; s=arc-20160816; b=GpPZbx0qsU6eMUXKWK5j0VgADR/ZHWGMqWj/Hhh/4rby17umzxcNfkWIfDLImEe+n1 G0lH3sBVDloS71rCkzD3XWvNnWf8zH/dcmTLclGKrT83AppLbU9zqNPNH6Eh7+IGjkJ4 L1cR3EP5x4td1jua7UCqqLChi8r8KT/ES4RbbqG1RguVLa3l7pKo4ZukfZRFzdHDAqwV APp6pLUVIpST5ZE0KTvAh4SxiV7UMm7gDHKGvbwvs2KuTkzZa2LWG6sQbOCXEmJfjGO6 vncPN/uRsWUzPlkIp3z+6ApQD6vIu+6dhfuS2XqezXxjkwuMAxIReps1ceCJsIhj0AMq ymlA== 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=Bkv68s3E9Pp+X9SP3v/agl994H0lPrJB3vSupfdg3nQ=; b=vTy7ylLi0Bn2RzgmL1uACVFZs6Pt90cuKu+oY5OPagWu4t+e1BhThjhEE49bRgzRNP sRaQFOQgo3BJ+0o8sk2XRxBmMXxBoLO5BpRKhgT3ctbpRg275OUfmllTilQjHpNzz4PX OZnrrxhN9PtCe47/8+91EMz9SVkMUSfMShMRy3eLiBzzoy3+LPCQfLEY64kkFR5Kn3lD wPYIbsGOpL2tOXsGJONDObyN/QK02IG6jOMZaqyAw601iqLOIOjKds91mNPhkS4iM8Ec vF3nEI3dtSHysacVS6wC2A6iZhoBeatLSXQAczpr2a1AVZR3f5bBaGGK51S7ZYGeXbmD kdUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=THRWMPZj; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g13-20020aa796ad000000b0053712acc6e0si160785pfk.246.2022.10.13.12.24.37; Thu, 13 Oct 2022 12:24:49 -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=@kernel.org header.s=k20201202 header.b=THRWMPZj; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230122AbiJMR6v (ORCPT + 99 others); Thu, 13 Oct 2022 13:58:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230151AbiJMR5p (ORCPT ); Thu, 13 Oct 2022 13:57:45 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75E81B5FED; Thu, 13 Oct 2022 10:57:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 927D4B82023; Thu, 13 Oct 2022 17:56:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C115C433D6; Thu, 13 Oct 2022 17:56:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665683815; bh=y+nUBGq5tB1wZxetm97uvPW+VajTy591xqNbeojGCUI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=THRWMPZj1u71R105pw6mVhDwikvx7jgGOnyNJNAnA3Zr+5pfkVeNWLBpsPriyG3X+ b5otynQ6faVOyuFlTq7g20RrfFiYXeCvupv29SkwvSgO66rlt8k3gIDB3XkbEOypOR petA2n6sNCk4ChfeRUizJmjynhR08hEhSTE4pkgtxjtdU5Bd81q36Iox5UZ1QowSAT sTC+5ajISnzlRyryrbrrEQ0zJnOJLUrxwrQlE5NKEbelOT+1MXN4xPolI7pG3H0vTK b6HoNuviF4tR/MYLicfdWo4EYnV8L5CfB94D0UcMLz+g3Hgb53KWYh+CURkVN9oMtJ JcBL2foHCXdmw== Date: Thu, 13 Oct 2022 13:56:54 -0400 From: Sasha Levin To: David Sterba Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, zhang songyi , Zeal Robot , Anand Jain , David Sterba , clm@fb.com, josef@toxicpanda.com, linux-btrfs@vger.kernel.org Subject: Re: [PATCH AUTOSEL 6.0 37/46] btrfs: remove the unnecessary result variables Message-ID: References: <20221011145015.1622882-1-sashal@kernel.org> <20221011145015.1622882-37-sashal@kernel.org> <20221012115418.GW13389@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20221012115418.GW13389@suse.cz> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Wed, Oct 12, 2022 at 01:54:18PM +0200, David Sterba wrote: >On Tue, Oct 11, 2022 at 10:50:05AM -0400, Sasha Levin wrote: >> From: zhang songyi >> >> [ Upstream commit bd64f6221a98fb1857485c63fd3d8da8d47406c6 ] >> >> Return the sysfs_emit() and iterate_object_props() directly instead of >> using unnecessary variables. >> >> Reported-by: Zeal Robot >> Reviewed-by: Anand Jain >> Signed-off-by: zhang songyi >> Reviewed-by: David Sterba >> Signed-off-by: David Sterba >> Signed-off-by: Sasha Levin >> --- >> fs/btrfs/props.c | 5 +---- >> fs/btrfs/sysfs.c | 10 ++-------- >> 2 files changed, 3 insertions(+), 12 deletions(-) >> >> diff --git a/fs/btrfs/props.c b/fs/btrfs/props.c >> index a2ec8ecae8de..055a631276ce 100644 >> --- a/fs/btrfs/props.c >> +++ b/fs/btrfs/props.c >> @@ -270,11 +270,8 @@ int btrfs_load_inode_props(struct inode *inode, struct btrfs_path *path) >> { >> struct btrfs_root *root = BTRFS_I(inode)->root; >> u64 ino = btrfs_ino(BTRFS_I(inode)); >> - int ret; >> - >> - ret = iterate_object_props(root, path, ino, inode_prop_iterator, inode); >> >> - return ret; >> + return iterate_object_props(root, path, ino, inode_prop_iterator, inode); > >Please drop the patch from stable queues, it's an obvious cleanup. Ack, I'll drop this and the other btrfs commits you've pointed out. -- Thanks, Sasha