From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3874BECAAD5 for ; Fri, 2 Sep 2022 12:50:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237757AbiIBMu1 (ORCPT ); Fri, 2 Sep 2022 08:50:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238008AbiIBMt3 (ORCPT ); Fri, 2 Sep 2022 08:49:29 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDE97F47E5; Fri, 2 Sep 2022 05:36:10 -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-out2.suse.de (Postfix) with ESMTPS id 667CE20440; Fri, 2 Sep 2022 12:29:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1662121747; 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=6qCFOxxO+LMYV00zUvZObOY0/jrL79ZSovJuTBVwyco=; b=iJ9CQY5kfRwAbA7g7Z3xJW2BCrOA8wgnIWzXMxAoCfpdW4xdtHXMD1ZiDvaVjyw+GEfo+1 fkAVWImqpV+d0yal5teYFFdsCYUEV58dewquPOoUKGdIKWaH7VqoysnbS5phGgD2/DTdvL +EUMAsekpIKicwyE2KGUx3VScEQsBG8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1662121747; 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=6qCFOxxO+LMYV00zUvZObOY0/jrL79ZSovJuTBVwyco=; b=7fSqaAfgJjkgR9p7k+ZY+McQ0vk01A43UYqnLtSWHex+mxmMHoP05vUFaLutll0xv3OdSe 9MbNE3TzLBFWLxAw== 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 3812613328; Fri, 2 Sep 2022 12:29:07 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id sJO2DBP3EWOnZgAAMHmgww (envelope-from ); Fri, 02 Sep 2022 12:29:07 +0000 Date: Fri, 2 Sep 2022 14:23:47 +0200 From: David Sterba To: cgel.zte@gmail.com Cc: clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, zhang songyi , Zeal Robot Subject: Re: [PATCH linux-next] btrfs: Remove the unneeded result variable Message-ID: <20220902122346.GT13489@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, cgel.zte@gmail.com, clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, zhang songyi , Zeal Robot References: <20220902074810.319914-1-zhang.songyi@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220902074810.319914-1-zhang.songyi@zte.com.cn> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Fri, Sep 02, 2022 at 07:48:10AM +0000, cgel.zte@gmail.com wrote: > From: zhang songyi > > Return the sysfs_emit() directly instead of storing it in another > redundant variable. > > Reported-by: Zeal Robot > Signed-off-by: zhang songyi There's another patch doing a similar cleanup in btrfs_load_inode_props, can you please resend so it's all done in one patch? I did not want to apply a single fix but now that there are a few more instances of the pattern it makes slightly more sense to apply it. Thanks. https://lore.kernel.org/linux-btrfs/20220830083914.276926-1-ye.xingchen@zte.com.cn/