Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3637493rwi; Wed, 12 Oct 2022 05:03:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7XTc60O+Oi0sTLtTHGugy/njixsBC/0IIenA3n2al7sk5h2Y5ADXxESVUbSVMEf/2y6D7z X-Received: by 2002:a17:907:a062:b0:78d:d4c3:caf9 with SMTP id ia2-20020a170907a06200b0078dd4c3caf9mr1640827ejc.704.1665576180928; Wed, 12 Oct 2022 05:03:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665576180; cv=none; d=google.com; s=arc-20160816; b=yV96YFLWvW7DKurlNMa0FhMvnVYxuBZ+/mOUGIqd/l7QmzlculL+QhJJxhAGXDpqMQ hsFswDm/UU6GSWD+BgoNSjBr2gQ9vxCDzozx71ag4Tb4xkWHw2ZXlcQnrXOLAqV4zO81 ik2iexPVoH4Qpcz47h1BEXPKDHU5btFVdxQkJbhMS695n+fgNnIMgLsO/Tm3c0+2EuOG 9DxX1Um6fMeGZiB85FxvPNeedsTzc4YMcgGqXDzEmGTPgoj81WmIjTWfh4wb1m3VfswN C33AlMPwmG8SWgdnCcaLi7B5UqmH4Z3m4d+Pt0dgb4AgRR5oFreyQgte34Q4hPs9pf9s DJGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=3zSpgWBUTLEADiWqyI4QhLUqGwSaF+lXEnhQbQY0U8U=; b=0aZ0GNp5bsLG0zKpgXYcHawB3jqEMK/6URoyhF0qC6XwudbgQTw3a8nnGPOgH7yiIT ccz2AtIxCzGvYgWxaCrZsb0pUNijQktmnMyWYl79giiqQbB+hE+3/AU/QUWnJ17ddEly dOZ9ZC7vFhN+vH1sEPz3QYbJ4VcnKfZiW3geXYOpx1VJ51jo0ndUH2n8tAxnefS/zYkS aiwj91eDH5jyUHKCIjv+htwNiqI8AATCGJzM+ibIROVEMqms5cJcdTIdl0bxtR+3hc/t 6RUjp1KE5MR9JGgNq1ItQY2Liwb/S3Y51cskWFqp0qz7rkOejuSfVk9LzWaTGJgD6iyw HPNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=A5bcXFgE; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=EUlk8H5n; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt18-20020a1709072d9200b007823754ecd5si20706633ejc.43.2022.10.12.05.02.34; Wed, 12 Oct 2022 05:03:00 -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.cz header.s=susede2_rsa header.b=A5bcXFgE; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=EUlk8H5n; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229552AbiJLLy3 (ORCPT + 99 others); Wed, 12 Oct 2022 07:54:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbiJLLy2 (ORCPT ); Wed, 12 Oct 2022 07:54:28 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D36EFB277B; Wed, 12 Oct 2022 04:54:26 -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 7754B21C2B; Wed, 12 Oct 2022 11:54:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1665575665; h=from:from:reply-to: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=3zSpgWBUTLEADiWqyI4QhLUqGwSaF+lXEnhQbQY0U8U=; b=A5bcXFgEFjvk6f598N+eoADmwbueIEgZ0Pghde9GtseBeW0+OrnQAIHM7FOkGmhDlsjwOQ WL9C53wWyo/9t3RTbk94HMNnd45r4nNTTidD+TK1mnYRYrld6mgKaYjpCM0OAWjBeTP9SK w1zf5FNtJhcISMpntoAa2vyDE/PKouk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1665575665; h=from:from:reply-to: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=3zSpgWBUTLEADiWqyI4QhLUqGwSaF+lXEnhQbQY0U8U=; b=EUlk8H5n56NSFO3OVh8L62EUH2UMFWOizQMG+1CzCH7gnM8wzy8H6csM4R3owf/NnEY8FQ PePWXNQefNsvzWAA== 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 00D7113A5C; Wed, 12 Oct 2022 11:54:24 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id +tkfOvCqRmOoQgAAMHmgww (envelope-from ); Wed, 12 Oct 2022 11:54:24 +0000 Date: Wed, 12 Oct 2022 13:54:18 +0200 From: David Sterba To: Sasha Levin 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: <20221012115418.GW13389@suse.cz> Reply-To: dsterba@suse.cz References: <20221011145015.1622882-1-sashal@kernel.org> <20221011145015.1622882-37-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221011145015.1622882-37-sashal@kernel.org> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_SOFTFAIL 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 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.