Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1297065ybb; Wed, 1 Apr 2020 20:41:39 -0700 (PDT) X-Google-Smtp-Source: APiQypJou+p5c0U/IqnKVBCtpopili6/FEGDrtoj7vIj6Tf834Z5JoFSgS3xp0+ZAcbpHOhBvAUF X-Received: by 2002:a9d:895:: with SMTP id 21mr808684otf.365.1585798899081; Wed, 01 Apr 2020 20:41:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585798899; cv=none; d=google.com; s=arc-20160816; b=CJVu9WyxuosskFgrEDhzLITL0rodTRH1GU2snBqAoKdNZbRcI/w+FUbrX/oaTKvILV pk8tDN7d2oxNxHXJ/2KjzOsbBYOc6DGdGcFpBrdHr2Cl0zjyBiLbeAuPHKra265dW98v xUmqZ/+KF4CggjfawVgT8SvwYW57my3vg1dgFGIyijkb5uMDjL6TQb6JZANKjSar0x0H Q03OwSwKH65GT+cf4oLOdRFYIhNkTjGqOC/Yj9FVS80gHaBldNRBT3bIS/27P8t+6zEc TYsXmpb67kzoJ2iLrfCpSuJVHE75Y0lnm0aZ1BP+9v5dS3+R6o/swL4jTLeU1Cd65mt7 0W0Q== 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=FKyrApsVrm4BMeQRJ2dX7vNoV9jXWjHaxIPNaxreLfY=; b=s0uRf94Fc5ifUFc2/GTFU2FijtHC0w51iGy6M5Wy14FER64ZnVGBFSATY32V7tlo1m iwvVqduJDGSyCLdAqPwKeEYPUaXDRu+3jQq6b+bdECxlPg0EnGLqMh+sGwkRnTA+v0/1 vutP9O1PbAxoOJHg5qi51AVCvOd04Q0Jv8HcP5wDcFKzrFgF/SRjPd84HvNbFEwsYEj+ 1yWuOSSqlCIGB9O+L2zlj8ez9Od5EdNyMv7dPB5WHZCXgb/HqYe+LPqAx7ejA/ijmTHS AA9hJAAXLyLlZxXA7WIhnwECnoF1HRgSnjTmR9KkW9NZ1XJlo+tHUGpNvtAnL/PqNamV 5uyg== 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 a14si1629561otr.170.2020.04.01.20.41.20; Wed, 01 Apr 2020 20:41:39 -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 S2387414AbgDBDlS (ORCPT + 99 others); Wed, 1 Apr 2020 23:41:18 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12667 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726205AbgDBDlS (ORCPT ); Wed, 1 Apr 2020 23:41:18 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id B2384CA398F61C171289; Thu, 2 Apr 2020 11:41:10 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Thu, 2 Apr 2020 11:41:02 +0800 From: Jason Yan To: , , , CC: Jason Yan Subject: [PATCH -next] ext4: remove set but not used variable 'es' Date: Thu, 2 Apr 2020 11:39:39 +0800 Message-ID: <20200402033939.25303-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/super.c:599:27: 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/super.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 9728e7b0e84f..0725cb120b77 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -596,7 +596,6 @@ void __ext4_error_file(struct file *file, const char *function, { va_list args; struct va_format vaf; - struct ext4_super_block *es; struct inode *inode = file_inode(file); char pathname[80], *path; @@ -604,7 +603,6 @@ void __ext4_error_file(struct file *file, const char *function, return; trace_ext4_error(inode->i_sb, function, line); - es = EXT4_SB(inode->i_sb)->s_es; if (ext4_error_ratelimit(inode->i_sb)) { path = file_path(file, pathname, sizeof(pathname)); if (IS_ERR(path)) -- 2.17.2