Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1302442ybb; Wed, 1 Apr 2020 20:51:02 -0700 (PDT) X-Google-Smtp-Source: APiQypI4XbL3bqLOSq/GnhTiQS3wqEDOpRMTW7R2rraafHAWXCFAYGi4LoJctGrpEGR70aBYRgmm X-Received: by 2002:a9d:6b02:: with SMTP id g2mr910856otp.340.1585799462838; Wed, 01 Apr 2020 20:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585799462; cv=none; d=google.com; s=arc-20160816; b=wYTQMYcgCWGXh5+NnDoKSLtgE9OakGU0zrlP0zinHXaJ117jEkLVLHv3iMXVvqu6rc 3h4rcT8eePZkcz/sz7kUjxWoQRrJafYygXn7h/06hS9onRXPNpc4DXWPyXC5V8LlKAhu k0lar4P84xD41XiaVG2prR5SROW3tdiFi1ES8ZHjLeSdixHG0Zg4D3635WoZa+LvY7Ng rH3UTZ6cPKbEWZoeDdt8Jxe3OJhxhLZyAJYLhjgxEVj6UlYHw1uHZYFm9/PlbhGGbmle APDKckI3XQqp84fQCyVEBE0oQan7n3FKWZU1ZrkJBQnbV02Y01esePbcFv0/MbBJNriV XBsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=6qbMRHFfigPVgNQ6Nn87NW6TR6tsQfZb97DK7b3f/iw=; b=L6drpTbTjEO+KH+i6CJbeGMiNTCKNQ9BydfZUE50t+sFN36BrHsl/qDgmRSHt/00Mg SNus45xnxOzeG1t7DV4L0rpjG5rCVUP6Dzk5IdwMK0kNZE7fZHuCGMV2OFk8dWccnW9z C6PgU8OBGIgnxL73Ay4CUVgjpqXSbWOoogb04Q6b4l3SLGI1KY8Ol3Z2Db78onuM6yOf oNxWyc78Ltg+OST8Blhspz881n7bI0oEmGfo4dL277NN2W76ZOubqV6f6AFQeQQWYUaK xG4j2pJdTtkTY6GFr3S5VMqUT2mO83KOwBQMJjPEfr1Ln/zig5VTnVon0+GH4iRyP+0X T4TQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si1711178oti.70.2020.04.01.20.50.49; Wed, 01 Apr 2020 20:51:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732482AbgDBDtj (ORCPT + 99 others); Wed, 1 Apr 2020 23:49:39 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12668 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732439AbgDBDtj (ORCPT ); Wed, 1 Apr 2020 23:49:39 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 45DDD2E4A07293643E83; Thu, 2 Apr 2020 11:49:32 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Thu, 2 Apr 2020 11:49:23 +0800 From: Jason Yan To: , , , CC: Jason Yan Subject: [PATCH -next] ext4: remove set but not used variable 'es' in ext4_jbd2.c Date: Thu, 2 Apr 2020 11:47:59 +0800 Message-ID: <20200402034759.29957-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Fix the following gcc warning: fs/ext4/ext4_jbd2.c:341:30: warning: variable 'es' set but not used [-Wunused-but-set-variable] struct ext4_super_block *es; ^~ Fixes: 2ea2fc775321 ("ext4: save all error info in save_error_info() and drop ext4_set_errno()") Reported-by: Hulk Robot Signed-off-by: Jason Yan --- fs/ext4/ext4_jbd2.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/ext4/ext4_jbd2.c b/fs/ext4/ext4_jbd2.c index 7f16e1af8d5c..0c76cdd44d90 100644 --- a/fs/ext4/ext4_jbd2.c +++ b/fs/ext4/ext4_jbd2.c @@ -338,9 +338,6 @@ int __ext4_handle_dirty_metadata(const char *where, unsigned int line, if (inode && inode_needs_sync(inode)) { sync_dirty_buffer(bh); if (buffer_req(bh) && !buffer_uptodate(bh)) { - struct ext4_super_block *es; - - es = EXT4_SB(inode->i_sb)->s_es; ext4_error_inode_err(inode, where, line, bh->b_blocknr, EIO, "IO error syncing itable block"); -- 2.17.2