Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1459102pxb; Fri, 27 Aug 2021 09:17:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5UPd6LWD9s2Y6gDnYZqLVmTw7CI3OZho7nBU7/40ujT7kKdepa30SmfTDzNJgPOlmKIhL X-Received: by 2002:adf:82a8:: with SMTP id 37mr11539800wrc.123.1630081041810; Fri, 27 Aug 2021 09:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630081041; cv=none; d=google.com; s=arc-20160816; b=MWXaNey4aSqnhc5mUWeNPA8jl0oGcELCLNFXs8xhXjLPtwLp8znHrNGqQr5/ote7Rs Fjg+/kBaGP70U5fKLrEo+1WNBNBPVtGQzlYEtEMbTizuLbHhmc5D0NuqL75KcTNJTqr/ oQozMnp2nYMUlD0hQ0N5FacBE/LbArEKuzZ6RF1PsZil9ZQyxsX7ZNvmPVhZtq1W2fI3 OjAnPzG0B1dg9YrcUsnKYPpnMR2vCK81n8WB/OglZ7vwHr9gMMaXALTG+j8G6ieDLpub kzh6gjBedRPSXW1LPTrkkypcp6FaZXVRVkfTKMu7fynocg22Fh3floJka2IpR7VjSw0Y gpHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=iNQdaFxj9PapAs2JkFepfUmmWDolt7ZtscncwVTKDhQ=; b=TaiFsqF4OziBHo2kki9nLOun7boko2Fy4i4qv8YdzK3MgSrvbu20yvl0hgHjh6bDMw LcbtlZ10rxjeev+UGqVKrqbmm2Fsm29LkIHkvwHYXnIzGLT4085AYekm5J55CXIyUIYw XuzC2xaM7aNwFsMx/SqN8OPFGozz01+S5jLwALzOeP6FFp9NtpluMREhZvorKFHEl+ib RLCghlZLy9rNmyBLxAHgrzduxwe0B6Mw1FsEFYo4XunggCf+RkTuIx9AQ4A7TOsnd2ig VB0iflT59ayLp0uxnDGEdSZFqCL8sOm7Yp6jVQq+l9dZVY0zTUDE+nX+H+eZzleILcxI OBuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b="mmwjc+/X"; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo26si6419082edb.294.2021.08.27.09.16.58; Fri, 27 Aug 2021 09:17:21 -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; dkim=pass header.i=@paragon-software.com header.s=mail header.b="mmwjc+/X"; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245488AbhH0QNW (ORCPT + 99 others); Fri, 27 Aug 2021 12:13:22 -0400 Received: from relayfre-01.paragon-software.com ([176.12.100.13]:36984 "EHLO relayfre-01.paragon-software.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234391AbhH0QNV (ORCPT ); Fri, 27 Aug 2021 12:13:21 -0400 Received: from dlg2.mail.paragon-software.com (vdlg-exch-02.paragon-software.com [172.30.1.105]) by relayfre-01.paragon-software.com (Postfix) with ESMTPS id 586ED1D45; Fri, 27 Aug 2021 19:12:31 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1630080751; bh=iNQdaFxj9PapAs2JkFepfUmmWDolt7ZtscncwVTKDhQ=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=mmwjc+/XaJNWLRE4v7qEd8whPHrgfdy4NIvTja+DAAuKxbR0KT5PsNOZYFML2NSR0 VrlmJFjbswWO0vg2y9nHEzXZeb16UCJgqX9TSFQjZM9qnejBiSiHuS00WLeaYqN/5p xTOXtYheuWTJB3mbCcGe/0pwFeW31zyxbMKLVR7Q= Received: from vdlg-exch-02.paragon-software.com (172.30.1.105) by vdlg-exch-02.paragon-software.com (172.30.1.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 27 Aug 2021 19:12:30 +0300 Received: from vdlg-exch-02.paragon-software.com ([fe80::586:6d72:3fe5:bd9b]) by vdlg-exch-02.paragon-software.com ([fe80::586:6d72:3fe5:bd9b%12]) with mapi id 15.01.2176.009; Fri, 27 Aug 2021 19:12:30 +0300 From: Konstantin Komarov To: Nathan Chancellor CC: "ntfs3@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "clang-built-linux@googlegroups.com" Subject: RE: [PATCH] fs/ntfs3: Remove unused variable cnt in ntfs_security_init() Thread-Topic: [PATCH] fs/ntfs3: Remove unused variable cnt in ntfs_security_init() Thread-Index: AQHXktVDRbExQDMRsEusl3oDXux+g6uHlt0g Date: Fri, 27 Aug 2021 16:12:30 +0000 Message-ID: <0b948fca469a45f3b65804776f11b41c@paragon-software.com> References: <20210816193041.1164125-1-nathan@kernel.org> In-Reply-To: <20210816193041.1164125-1-nathan@kernel.org> Accept-Language: ru-RU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.30.0.26] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Nathan Chancellor > Sent: Monday, August 16, 2021 10:31 PM > To: Konstantin Komarov > Cc: ntfs3@lists.linux.dev; linux-kernel@vger.kernel.org; clang-built-linu= x@googlegroups.com; Nathan Chancellor > > Subject: [PATCH] fs/ntfs3: Remove unused variable cnt in ntfs_security_in= it() >=20 > Clang warns: >=20 > fs/ntfs3/fsntfs.c:1874:9: warning: variable 'cnt' set but not used > [-Wunused-but-set-variable] > size_t cnt, off; > ^ > 1 warning generated. >=20 > It is indeed unused so remove it. >=20 > Fixes: 82cae269cfa9 ("fs/ntfs3: Add initialization of super block") > Signed-off-by: Nathan Chancellor > --- > fs/ntfs3/fsntfs.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) >=20 > diff --git a/fs/ntfs3/fsntfs.c b/fs/ntfs3/fsntfs.c > index 92140050fb6c..c6599c514acf 100644 > --- a/fs/ntfs3/fsntfs.c > +++ b/fs/ntfs3/fsntfs.c > @@ -1871,7 +1871,7 @@ int ntfs_security_init(struct ntfs_sb_info *sbi) > struct ATTRIB *attr; > struct ATTR_LIST_ENTRY *le; > u64 sds_size; > - size_t cnt, off; > + size_t off; > struct NTFS_DE *ne; > struct NTFS_DE_SII *sii_e; > struct ntfs_fnd *fnd_sii =3D NULL; > @@ -1946,7 +1946,6 @@ int ntfs_security_init(struct ntfs_sb_info *sbi) > sbi->security.next_off =3D > Quad2Align(sds_size - SecurityDescriptorsBlockSize); >=20 > - cnt =3D 0; > off =3D 0; > ne =3D NULL; >=20 > @@ -1964,8 +1963,6 @@ int ntfs_security_init(struct ntfs_sb_info *sbi) > next_id =3D le32_to_cpu(sii_e->sec_id) + 1; > if (next_id >=3D sbi->security.next_id) > sbi->security.next_id =3D next_id; > - > - cnt +=3D 1; > } >=20 > sbi->security.ni =3D ni; >=20 > base-commit: 96b18047a7172037ff4206720f4e889670030b41 > -- > 2.33.0.rc2 Hi Nathan! Thanks for your contribution - applied. Best regards.