Message ID | 1681731135-18768-1-git-send-email-wubo@huaweicloud.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:3046:b0:115:7a1d:dabb with SMTP id p6csp2113591rwl; Mon, 17 Apr 2023 07:55:34 -0700 (PDT) X-Google-Smtp-Source: AKy350bFlPKsY/ULvX9+nYmp6tppeAUXc4J98xVL3O//rqERfGyfVrlH/K13fFZsNi3PjWTLOHo0 X-Received: by 2002:a05:6a00:1249:b0:625:c9bd:57de with SMTP id u9-20020a056a00124900b00625c9bd57demr19622453pfi.30.1681743334499; Mon, 17 Apr 2023 07:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681743334; cv=none; d=google.com; s=arc-20160816; b=0X6b5NAKzdIF/YLSwK09VN7hzyr4xHKkxt8OtBC9kDqKIYX+DaUOB2lj0lUEx8x7FE 0ABW+RQ1AMaT3hd9f/b9F7sXjbphvw1IE9+1jS+515X252PfFLDPkecEVMITZJV8flun ZpZQDKt4EtBpvGNzhpmjj+IE5iQLmqkaSAqZ388jHjL5K04TwtYcW6rjAu1g9RZIlBlG fwU28ptVrbh4EmYk6MKhEhxU/of1lslRUd2BYU4J7nU2x8dawqfAs6rdQar6GrEKOab1 6QQ++By5rgRShEYAv1kmkAYw+IFf9x/1FAZgB0N8pU3PDETjgjQB3/kU4nXaYwLHFEPG kipg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=+ejUy6LMFW8Wh6Y4tNnoykCfPCodBfYC3aWyhPP+zrU=; b=VbMsGA472azFWwc3TryrAHfHgd3YbfmxoyZwDtnlvOyiPZayLCLFISbHO+fEkl+ZQ9 iIOTADwEbHW9pjcN2FAXpBYBZH8CYpAsGosfr1neD87Ks+idmZwO89cpVuCMB0IJ5La5 QTizzhysHPV8ims32ujTXUwI4LWFqn7NFRiTsrcNEUSOppmGKZ/qqynIWD9LtYiLDWeV 1EY7xvMKqiCF/6cIg7TZfXKFuicj7u9IQzAfnIcTvQsZDAG/Ae4sN271reNnYnvU+Rrk Rwwlz8UY30WOaSg+9W6oQfxiqRmvex1xBjHyW+QCaBoXonznqwi00bz5ondTGa3RC9+b +FOw== ARC-Authentication-Results: i=1; mx.google.com; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 64-20020a620643000000b0063ab35b9d75si11374244pfg.162.2023.04.17.07.55.19; Mon, 17 Apr 2023 07:55:34 -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; 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 S230232AbjDQOY3 (ORCPT <rfc822;leviz.kernel.dev@gmail.com> + 99 others); Mon, 17 Apr 2023 10:24:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229889AbjDQOY1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Apr 2023 10:24:27 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05B8210C; Mon, 17 Apr 2023 07:24:25 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4Q0Nyj14Jjz4f40ly; Mon, 17 Apr 2023 18:46:37 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP2 (Coremail) with SMTP id Syh0CgC3q+mOIz1kzuPtHQ--.31500S2; Mon, 17 Apr 2023 18:46:38 +0800 (CST) From: Wu Bo <wubo@huaweicloud.com> To: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andreas Dilger <adilger.kernel@dilger.ca>, tytso@mit.edu, qiuchangqi.qiu@huawei.com, wubo40@huawei.com Subject: [PATCH] ext4: Remove unnecessary variable assignments Date: Mon, 17 Apr 2023 19:32:15 +0800 Message-Id: <1681731135-18768-1-git-send-email-wubo@huaweicloud.com> X-Mailer: git-send-email 1.8.3.1 X-CM-TRANSID: Syh0CgC3q+mOIz1kzuPtHQ--.31500S2 X-Coremail-Antispam: 1UD129KBjvdXoWrGFWUWr13Gr17WF4kJryfXrb_yoWxWrg_t3 WUAr48A3yrJr1SkF1kXrsxtr40qan5Ar18AFZ3tryfuF1UXa1rua1kArySyrnruay2yasx uas3KryUJryFvjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbokYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwV A0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW7JVWDJwA2z4x0Y4vE2Ix0cI8IcVCY1x02 67AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxV AFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2 j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE7x kEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkE bVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67 AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI 42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6rWUJVWrZr 1UMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsG vfC2KfnxnUUI43ZEXa7IU8oGQDUUUUU== X-CM-SenderInfo: pzxe0q5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763435699001785762?= X-GMAIL-MSGID: =?utf-8?q?1763435699001785762?= |
Series |
ext4: Remove unnecessary variable assignments
|
|
Commit Message
Wu Bo
April 17, 2023, 11:32 a.m. UTC
Just remove unnecessary variable assignments.
Signed-off-by: Wu Bo <wubo@huaweicloud.com>
---
fs/ext4/mballoc.c | 1 -
1 file changed, 1 deletion(-)
Comments
On Mon 17-04-23 19:32:15, Wu Bo wrote: > Just remove unnecessary variable assignments. > > Signed-off-by: Wu Bo <wubo@huaweicloud.com> Looks good. Feel free to add: Reviewed-by: Jan Kara <jack@suse.cz> 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 >
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; }