Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1327208pxb; Fri, 6 Nov 2020 07:00:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAaoTfsBYl+Gd/W081V2fDG474dX0sq84cMfo5C38IqGWMgYbbXnFlt/9rXsPEXvvJLoYe X-Received: by 2002:a17:906:6896:: with SMTP id n22mr2559580ejr.56.1604674814702; Fri, 06 Nov 2020 07:00:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604674814; cv=none; d=google.com; s=arc-20160816; b=bAraFTVDDPtDvO43cGn3Zk43VXnLaLnHiRhAx1ktMNgW6dlwNw/WG/338Em39PGjgC KSfxg0yr7DHFQ6Y8IT9rSbatygf2mgjHoaJg6Q6Dikhi09/MwomwX+VuUDKd8zL8Pe0q tEfTqXSX+PXuxVnFhqcs3cCZkhzb0ltrf0CluQPxLt/wAqVO8fpZy+THFbaEmJLg2ESH wKYzMV72m+ACAieQlWPJkUTZyiBsjS3Mf1j8/cgNRuV8YdWBnstwq00qBgXxJFcFQ0oG h6FjgHjY6qXMifX8x2g6yCBrHkG/5j5ndQ9oZ1LDDtPrB9+5YbgZEcxgNONCygsyMtwf UDJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=H0QyZiqUfqG0YZqY3I7tHqtMLvv23f4RWlfeBt2gJRM=; b=NIUYc3htzp2sLnEib2henEO2e0JJRSRiZXk/uqOY2tIzoq895viTweLajwLw4GUz0m bl/1VG2gHIZt/skm+i2/wwp2kvQgpbZr6LuvGFDgBs6U8NWHHF07MiSacnj07PB4lure 52v92+/BeYOjHQM9b3ESwAItqB5h+uW4be7a/iuzrveTgaEmbWmxBF3yJyp6Hfr/AaIo 50/9Arp0OgopDP7edveo1CngOG/6pwHEifMxMVUWlMRheV90HjmNIKAjNzLSoOscS/Cw u7J6TzGBnwRABoncCWaOO8mOownXHxxS/2MdW8YePZQBcKlfVaaTGlGTZHk1enkfjwFr iprw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si570876edq.28.2020.11.06.06.59.49; Fri, 06 Nov 2020 07:00:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727313AbgKFO50 (ORCPT + 99 others); Fri, 6 Nov 2020 09:57:26 -0500 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:58720 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbgKFO50 (ORCPT ); Fri, 6 Nov 2020 09:57:26 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R421e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UERVsL7_1604674631; Received: from aliy80.localdomain(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0UERVsL7_1604674631) by smtp.aliyun-inc.com(127.0.0.1); Fri, 06 Nov 2020 22:57:11 +0800 From: Alex Shi Cc: Jan Harkes , coda@cs.cmu.edu, codalist@coda.cs.cmu.edu, linux-kernel@vger.kernel.org Subject: [PATCH] fs/coda: remove useless varible 'err' Date: Fri, 6 Nov 2020 22:57:08 +0800 Message-Id: <1604674628-52464-1-git-send-email-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The variable is unused and cause gcc warning: fs/coda/file.c:241:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable] So let's remove it. Signed-off-by: Alex Shi Cc: Jan Harkes Cc: coda@cs.cmu.edu Cc: codalist@coda.cs.cmu.edu Cc: linux-kernel@vger.kernel.org --- fs/coda/file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/coda/file.c b/fs/coda/file.c index 128d63df5bfb..31a7ba383cb2 100644 --- a/fs/coda/file.c +++ b/fs/coda/file.c @@ -238,11 +238,10 @@ int coda_release(struct inode *coda_inode, struct file *coda_file) struct coda_file_info *cfi; struct coda_inode_info *cii; struct inode *host_inode; - int err; cfi = coda_ftoc(coda_file); - err = venus_close(coda_inode->i_sb, coda_i2f(coda_inode), + venus_close(coda_inode->i_sb, coda_i2f(coda_inode), coda_flags, coda_file->f_cred->fsuid); host_inode = file_inode(cfi->cfi_container); -- 1.8.3.1