Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2259203rwr; Fri, 28 Apr 2023 08:07:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6cOTCEhfg4yTEx+efIb0CzYNOa0Y5AlFXAFp7zc5eTlHmsKvfBSOG4Hz1Bi2PABF2yLogO X-Received: by 2002:a05:6a20:728f:b0:f2:5b9f:fe73 with SMTP id o15-20020a056a20728f00b000f25b9ffe73mr11828665pzk.28.1682694444726; Fri, 28 Apr 2023 08:07:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682694444; cv=none; d=google.com; s=arc-20160816; b=beHu04SU33I0W/ve+I5MCG6tlKhFO4AWI/CALPjO53k/7CBFk4H1VoILB43WQsJAtA QO/iAZGioypK7rTx3H0StFQcES0/K5fn59uNFpv6SNJDeIS73eyjk3rf9B1hKV499+VM ekMVlJsS+hWRrz+Ha7hAHaPff0VMLuUHoqIZYcPp7sGDco8mAdRI/DYSUPzAsgADk81R F32jqYHKjHTqqU/kTzjWb0QjWc6CX7PyR+g90nZwC3ZMimCHtQfYFURxb00fh5DHrgKx WopbWmay5KPXUZKo+8HQpagrka60tjizTjAgU2feauZXd/4yC00dhN/SVKdv27eX8BIH lWqg== 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 :dkim-signature; bh=pWc+/LnHmEKaQXdNj0kSzuKffYCIpGDlsQo52XW1EBk=; b=bPbdN+R192+F/aXiXwLoHxft86sSdevpy3lZMXq2bdsBm4jXPqlCQdDEk+z+qXbQ7N BmZnQX5vVzkakLwU+GBk7b90liKb8PbCpf/3XyVixtdCEvYmsZCJvf513MDaidR02usc ua2xEfs63oe2T0Pm5bVS13nRgOMyoF6lQfKKccGn/Wyoi25G5xAXDbAFp4c37I6RQ9Cb v6SmgDlQYb0MeER+C1AsYMyqTCfvLlns1ZmzLao+L+D3ojvm95pPMEWUAF5xqgsrQRlg Cdl4oa4Fo/THSfZnDsPUohSZsdfkOnVcJ7fXwxWP4FOD4E7owPdFoOhl3jgfTILNJi6Q lS8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=P7yoor0e; dkim=neutral (no key) header.i=@suse.cz header.b=KGSTxwZm; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 q5-20020a634305000000b0051b6cf7306asi8557680pga.52.2023.04.28.08.06.36; Fri, 28 Apr 2023 08:07:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=P7yoor0e; dkim=neutral (no key) header.i=@suse.cz header.b=KGSTxwZm; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346253AbjD1O6l (ORCPT + 99 others); Fri, 28 Apr 2023 10:58:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbjD1O6f (ORCPT ); Fri, 28 Apr 2023 10:58:35 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B35A55BD; Fri, 28 Apr 2023 07:58:34 -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 1C6C6200C3; Fri, 28 Apr 2023 14:58:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1682693913; 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=pWc+/LnHmEKaQXdNj0kSzuKffYCIpGDlsQo52XW1EBk=; b=P7yoor0eSo0jk1UW1MQxaLwwZlEn/L6vsijjKZTdjLIb+9c3ST045lVjxJpKyOFv56t1Y4 wNju2SXGyCNXJOl9Sy/awhh0psFTVZQB6F2qgq7Ti4owOWKadNgIwbbzCXTZ8EXAwAVnMp Zfumc36iJGX/eXu8fu3/fEYPw+6pNQs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1682693913; 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=pWc+/LnHmEKaQXdNj0kSzuKffYCIpGDlsQo52XW1EBk=; b=KGSTxwZmnI12QJeK73ov38wGWehnyZuWzYvoifPtTqqdeLn9jMLoPPDy05kiPFkqPC6/2+ cXTdTCmiXirwnwAw== 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 0735E1390E; Fri, 28 Apr 2023 14:58:33 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id yuO3ARnfS2TTTgAAMHmgww (envelope-from ); Fri, 28 Apr 2023 14:58:33 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 4259BA0729; Fri, 28 Apr 2023 16:58:32 +0200 (CEST) Date: Fri, 28 Apr 2023 16:58:32 +0200 From: Jan Kara To: Wu Bo Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Andreas Dilger , tytso@mit.edu, qiuchangqi.qiu@huawei.com, wubo40@huawei.com Subject: Re: [PATCH] ext4: Remove unnecessary variable assignments Message-ID: <20230428145832.azuluj4rnqurphyg@quack3> References: <1681731135-18768-1-git-send-email-wubo@huaweicloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1681731135-18768-1-git-send-email-wubo@huaweicloud.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_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-ext4@vger.kernel.org On Mon 17-04-23 19:32:15, Wu Bo wrote: > Just remove unnecessary variable assignments. > > Signed-off-by: Wu Bo Looks good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > fs/ext4/mballoc.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c > index 5b2ae37..f0b790d 100644 > --- a/fs/ext4/mballoc.c > +++ b/fs/ext4/mballoc.c > @@ -5842,7 +5842,6 @@ static void ext4_free_blocks_simple(struct inode *inode, ext4_fsblk_t block, > ext4_get_group_no_and_offset(sb, block, &group, &blkoff); > bitmap_bh = ext4_read_block_bitmap(sb, group); > if (IS_ERR(bitmap_bh)) { > - err = PTR_ERR(bitmap_bh); > pr_warn("Failed to read block bitmap\n"); > return; > } > -- > 1.8.3.1 > -- Jan Kara SUSE Labs, CR