Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4178870ybf; Tue, 3 Mar 2020 22:08:05 -0800 (PST) X-Google-Smtp-Source: ADFU+vtCz6NLP9bfwQfgOcTnDgvmmiEN58XALqYrKOAYfwgk+RAsRDFcwNqHCX6l6xPvmGG0UdYe X-Received: by 2002:a9d:dc1:: with SMTP id 59mr1171042ots.250.1583302085431; Tue, 03 Mar 2020 22:08:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583302085; cv=none; d=google.com; s=arc-20160816; b=wZ/FAyY3vAWYZCI7Vj5mqey3Jx3FmDpuZRJhLuIDg0VLe2C0hZdTrP9dKSvzeyivkx CpxHLDmIXgGwXTton/OqxhgHTJwt84Lvc1LxCbTUvUxeG9S2eO7qcbyYqDYCkENHpDG0 GhVzhHctw5O3KbCN9+sAQElt4lJ6cgiY95Hu/k9ZY/3eTqqPBL+CUqr4pUBH9UQU4c4r JO8/dor9qoWi3NHZlWruJFicHfpqR/lr80dN2NognsFs27BjgjqghB5uq+NFxV6Fcfq1 WeKDNQNhUJ/3G/8aLL37xEQxCB8Q4g/aF5nyxT/lUNTLtD/m1JnfBfpY3NrVIT4QvZJZ u+rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=vttavIy9rw/iv9joksuD3LqxV224U+XKvXc8V3d/N6U=; b=ctem2+5otPp+Jw9oUWLQNndC2QGqy7pD3wdsnzq3Zxxd7J/ItZGnfzKDlxfRf6lFf/ LwXy4ZMk0ihLUV9eq0BSNPvLwXv9JWdO800H7tLlDFm8ohbJ4A7UGM/vgPFjvcOg2QuN Ie0gD0AZW5k0/R5lX3lSoUWSJlHeqY43yUZs03dUr0SQcyt+ak4O1SrHSIF3qztiLQHL 0l4NgKRdQWBahaOp0/bAzBfNVwFSvNIgUo/sF6gqXFc9gMO0dbv4eYixoTNtCLfQp9be 2hO9zH1sFgCeQT7LSp0p7ejjqHemkTsuQJeU1baKPhulDhcVzc0TQ/mmPavz89PKaX7n 8Y8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XVR8p2SB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i24si578042otp.282.2020.03.03.22.07.50; Tue, 03 Mar 2020 22:08:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XVR8p2SB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725822AbgCDGHj (ORCPT + 99 others); Wed, 4 Mar 2020 01:07:39 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:55119 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbgCDGHj (ORCPT ); Wed, 4 Mar 2020 01:07:39 -0500 Received: by mail-pj1-f67.google.com with SMTP id dw13so429265pjb.4 for ; Tue, 03 Mar 2020 22:07:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=vttavIy9rw/iv9joksuD3LqxV224U+XKvXc8V3d/N6U=; b=XVR8p2SBDhhSSScyNLYQ+of0Yg0As+tZwm9aaXtfcCbmMlupp49cHGRcxMkOkG37ry 4B9BRfR6Hp/83Dc7qDdjQFPIlhuTsqnP42FicUfHf+FEaWABzlfcf0LG0wlR7pSPKsOT OBPwl7X7HeYN3wt0flfKXkQsIHsBBgYtt+s2p9pgTG4kenFdBi/7D+kxjN8qX1CF6VMK 29j4llKIE++A6k2fp4zqGSZSLhHIrp7b3+wwC8l98WoSWh0jr+8KPimgJk+F3YdJe3Xb k35yXzYKC9WLkKG+1LPHaPq9X8ej/ReuXy582SfOrc9FD4qRfsLD7nP4bCw0f0/3VoWt m23A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vttavIy9rw/iv9joksuD3LqxV224U+XKvXc8V3d/N6U=; b=EMlyXG4u6PKLibzi7g8cbq8KjL+n+rwD5wOdmUfjxw014oewoivwvLaTzKklHG+KGE niDSOXVPY+akL1eMYf6hEevkqLXyERL2aeOZBdRV2GZyMfEtQ4T+f0tnHY0RYp1U/rAx O+f5fR6AU2NVjmtBWUSZPlaNlGCWemuejk5any0rEXuXbuefSHd0qZ4hKU3q5IR+l2Iw Ok7QpPUAuYwbmQIT8v4+QKTnLB3LT1jnECSE5XPSjNxdB2Ndv+XSVDFCg6FitlWIIhQy M5NR0VqZPsN5cJPmiAfcuCdg33qVCwXWbwcyCDP4bHaJbuOsZoK7159TA0r0vYOryt9d Lm/w== X-Gm-Message-State: ANhLgQ2VEVIV0radOoIdfbPFOdO+kheLxIH1VIKR87esDcyVz6WGeOhw TRj6SOeWUSDVrfnHNStr27k= X-Received: by 2002:a17:90a:8042:: with SMTP id e2mr1532217pjw.16.1583302058594; Tue, 03 Mar 2020 22:07:38 -0800 (PST) Received: from VM_0_35_centos.localdomain ([150.109.62.251]) by smtp.gmail.com with ESMTPSA id m18sm25400051pgd.39.2020.03.03.22.07.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2020 22:07:38 -0800 (PST) From: Qiujun Huang To: anton@tuxera.com Cc: linux-ntfs-dev@lists.sourceforge.net, linux-kernel@vger.kernel.org, Qiujun Huang Subject: [PATCH] fs/ntfs: remove not used variable 'base_ni' Date: Wed, 4 Mar 2020 14:07:34 +0800 Message-Id: <1583302054-2615-1-git-send-email-hqjagain@gmail.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is not used, so can be removed. Signed-off-by: Qiujun Huang --- fs/ntfs/file.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c index f42967b..e5aab26 100644 --- a/fs/ntfs/file.c +++ b/fs/ntfs/file.c @@ -323,7 +323,7 @@ static ssize_t ntfs_prepare_file_for_write(struct kiocb *iocb, unsigned long flags; struct file *file = iocb->ki_filp; struct inode *vi = file_inode(file); - ntfs_inode *base_ni, *ni = NTFS_I(vi); + ntfs_inode *ni = NTFS_I(vi); ntfs_volume *vol = ni->vol; ntfs_debug("Entering for i_ino 0x%lx, attribute type 0x%x, pos " @@ -365,9 +365,6 @@ static ssize_t ntfs_prepare_file_for_write(struct kiocb *iocb, err = -EOPNOTSUPP; goto out; } - base_ni = ni; - if (NInoAttr(ni)) - base_ni = ni->ext.base_ntfs_ino; err = file_remove_privs(file); if (unlikely(err)) goto out; -- 1.8.3.1