From nobody Sat May 10 05:42:21 2025 Delivered-To: importer2@patchew.org Received-SPF: pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; envelope-from=linux-kernel-owner@vger.kernel.org; helo=vger.kernel.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail(p=none dis=none) header.from=linux.alibaba.com ARC-Seal: i=1; a=rsa-sha256; t=1604822556; cv=none; d=zohomail.com; s=zohoarc; b=hgZZyonAVcENsXcF8HiG+zLO3HFn4k2XT0OWVxHq5CQz4ad6Oui4VrdhxkGUVcPTiZPnHIIYGUt/JRXM+gBJoApoF2ghyfRPrPWUBOqf6+rfPl0/ICN+dEvZ17DCDECh6qccWiRBrIbFnCD4039RI8hSlKBo3Ur2J4uV5SJiBQA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604822556; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Id:MIME-Version:Message-ID:Subject:To; bh=3wdriHxnAre0R/KR0+xM6f6LNC3VRWrcjSM7jFIdBcU=; b=U26+tnFRi7s3l3PkmXjOwT85AYTd6UZ6zP1voRepPpilWeH7dfL5s2jfHglT3XwaGuZIGa0/Jpc7KYeWquusYXlEbha1kVzqcyII8gvzLWPSrFc0/fszw0mCVthLpItsXMZwxiOIeIN1wvVViy/OYmDbpZGRA2vushrKGZMrl48= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mx.zohomail.com with SMTP id 1604822556485905.8880127846367; Sun, 8 Nov 2020 00:02:36 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727834AbgKHHyT (ORCPT ); Sun, 8 Nov 2020 02:54:19 -0500 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:49985 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726869AbgKHHyT (ORCPT ); Sun, 8 Nov 2020 02:54:19 -0500 Received: from aliy80.localdomain(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0UEabaDp_1604822057) by smtp.aliyun-inc.com(127.0.0.1); Sun, 08 Nov 2020 15:54:17 +0800 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;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=3;SR=0;TI=SMTPD_---0UEabaDp_1604822057; From: Alex Shi Cc: Anton Altaparmakov , linux-ntfs-dev@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH] fs/ntfs: remove unused varible attr_len Date: Sun, 8 Nov 2020 15:54:16 +0800 Message-Id: <1604822056-65430-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: quoted-printable To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This varible isn't used anymore, remove it to skip W=3D1 warning: fs/ntfs/inode.c:2350:6: warning: variable =E2=80=98attr_len=E2=80=99 set bu= t not used [-Wunused-but-set-variable] Signed-off-by: Alex Shi Cc: Anton Altaparmakov =20 Cc: linux-ntfs-dev@lists.sourceforge.net=20 Cc: linux-kernel@vger.kernel.org=20 --- fs/ntfs/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/ntfs/inode.c b/fs/ntfs/inode.c index caf563981532..d3127ea201ec 100644 --- a/fs/ntfs/inode.c +++ b/fs/ntfs/inode.c @@ -2347,7 +2347,6 @@ int ntfs_truncate(struct inode *vi) ATTR_RECORD *a; const char *te =3D " Leaving file length out of sync with i_size."; int err, mp_size, size_change, alloc_change; - u32 attr_len; =20 ntfs_debug("Entering for inode 0x%lx.", vi->i_ino); BUG_ON(NInoAttr(ni)); @@ -2721,7 +2720,7 @@ int ntfs_truncate(struct inode *vi) * this cannot fail since we are making the attribute smaller thus by * definition there is enough space to do so. */ - attr_len =3D le32_to_cpu(a->length); + le32_to_cpu(a->length); err =3D ntfs_attr_record_resize(m, a, mp_size + le16_to_cpu(a->data.non_resident.mapping_pairs_offset)); BUG_ON(err); --=20 1.8.3.1