Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2610210pxb; Tue, 13 Apr 2021 06:12:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPgXvBOhhc+6+NnywnIPfxSUmnze+rsYVqXdQ6ubnrioVnhtpavJc+SexCFFPEnXATlHuX X-Received: by 2002:a62:6451:0:b029:23f:6ea1:293f with SMTP id y78-20020a6264510000b029023f6ea1293fmr29021037pfb.53.1618319522225; Tue, 13 Apr 2021 06:12:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618319522; cv=none; d=google.com; s=arc-20160816; b=v0l13xU0tRNBQihAX7LdTdnKeE9ZC55eLsNTe/9HD7bas/6QDld5Qew/OYRR6C/oTS wLX7wjtllb5djstzsRb4v+EwZqvBJ8b1thtArs4FzzNFVFds1hbBILgDOvbhvp7zoCpx gM3TxF8sCWAgwzIGfqlIlS1AKXCKRBPLpyyhI2PxidrhvswPXcUTzneIfbZFhBhP6KJA Phdl4MWvS12uD+wZATS2I2pG6Kzh1vB7Ino8HFfHw8Oj22EGfdqKG9JGFQqLBq/vXkEs fCAYm+GPQc2X8NxvO3iAzx72mZPxX6iBxl03S/AvDLfA6BUMcCShyl8mn8P3jPxlHMYc f8Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=SYT1fYnLVOgKBvh+6Fa36FAT3n5r6j6MIB2NTyolbsw=; b=QENSLKetFkPw6iSA4o0VfMe/9dYaPslrF3u4eqX84nr6JmMxAihlCGjqJYsY+wRQY5 1rqlFbLZ3KqwrbSmnZBi2/gTaDD/i8F8pPVqKQC/AwMaIK2aSoBCw0vhF5M1ahsQiVBj /k99PPE6W8LErYcB8HYy/mQ3aeQsnRN7Z9tpbtTkox0E0HSSbr9JlswUIB/70/ledAI0 qyKsQOXo+TcfuKFvqVQH773adA+LetR7QBVQ3e6Y2RZOodtj48pJKONZjRbW7isDXfRK Crue+7259mnknR/AXI1u+rqxHi7u0StWbM8BWz775YGXC7Pa71cX5S8zu8sOFeoO/txM k3/Q== 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 r9si8232007plc.411.2021.04.13.06.11.49; Tue, 13 Apr 2021 06:12:02 -0700 (PDT) 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 S239087AbhDMC6z (ORCPT + 99 others); Mon, 12 Apr 2021 22:58:55 -0400 Received: from out30-44.freemail.mail.aliyun.com ([115.124.30.44]:58818 "EHLO out30-44.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237380AbhDMC6y (ORCPT ); Mon, 12 Apr 2021 22:58:54 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R711e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UVP9KZY_1618282693; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVP9KZY_1618282693) by smtp.aliyun-inc.com(127.0.0.1); Tue, 13 Apr 2021 10:58:33 +0800 From: Jiapeng Chong To: jaharkes@cs.cmu.edu Cc: coda@cs.cmu.edu, codalist@coda.cs.cmu.edu, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] coda: remove useless variable Date: Tue, 13 Apr 2021 10:58:12 +0800 Message-Id: <1618282692-122163-1-git-send-email-jiapeng.chong@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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: fs/coda/file.c:241:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/coda/file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/coda/file.c b/fs/coda/file.c index 128d63d..8b1d3d2 100644 --- a/fs/coda/file.c +++ b/fs/coda/file.c @@ -238,12 +238,11 @@ 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), - coda_flags, coda_file->f_cred->fsuid); + venus_close(coda_inode->i_sb, coda_i2f(coda_inode), + coda_flags, coda_file->f_cred->fsuid); host_inode = file_inode(cfi->cfi_container); cii = ITOC(coda_inode); -- 1.8.3.1