|
Kmods SIG |
d83023 |
From 8c01308b6d6b2bc8e9163c6a3400856fb782dee6 Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
d83023 |
From: Nathan Chancellor <nathan@kernel.org>
|
|
Kmods SIG |
d83023 |
Date: Mon, 16 Aug 2021 12:30:41 -0700
|
|
Kmods SIG |
d83023 |
Subject: [Backport 8c01308b6d6b] src: Remove unused variable cnt in
|
|
Kmods SIG |
d83023 |
ntfs_security_init()
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
Clang warns:
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
src/fsntfs.c:1874:9: warning: variable 'cnt' set but not used
|
|
Kmods SIG |
d83023 |
[-Wunused-but-set-variable]
|
|
Kmods SIG |
d83023 |
size_t cnt, off;
|
|
Kmods SIG |
d83023 |
^
|
|
Kmods SIG |
d83023 |
1 warning generated.
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
It is indeed unused so remove it.
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
Fixes: 82cae269cfa9 ("src: Add initialization of super block")
|
|
Kmods SIG |
d83023 |
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
|
|
Kmods SIG |
d83023 |
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
|
|
Kmods SIG |
d83023 |
Reviewed-by: Kari Argillander <kari.argillander@gmail.com>
|
|
Kmods SIG |
d83023 |
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
|
|
Kmods SIG |
d83023 |
---
|
|
Kmods SIG |
d83023 |
src/fsntfs.c | 5 +----
|
|
Kmods SIG |
d83023 |
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
diff --git a/src/fsntfs.c b/src/fsntfs.c
|
|
Kmods SIG |
d83023 |
index 92140050fb6c250ce263832d86ff15257cc035e4..c6599c514acf630183cd5eeef7a1630ea0ec6a75 100644
|
|
Kmods SIG |
d83023 |
--- a/src/fsntfs.c
|
|
Kmods SIG |
d83023 |
+++ b/src/fsntfs.c
|
|
Kmods SIG |
d83023 |
@@ -1871,7 +1871,7 @@ int ntfs_security_init(struct ntfs_sb_info *sbi)
|
|
Kmods SIG |
d83023 |
struct ATTRIB *attr;
|
|
Kmods SIG |
d83023 |
struct ATTR_LIST_ENTRY *le;
|
|
Kmods SIG |
d83023 |
u64 sds_size;
|
|
Kmods SIG |
d83023 |
- size_t cnt, off;
|
|
Kmods SIG |
d83023 |
+ size_t off;
|
|
Kmods SIG |
d83023 |
struct NTFS_DE *ne;
|
|
Kmods SIG |
d83023 |
struct NTFS_DE_SII *sii_e;
|
|
Kmods SIG |
d83023 |
struct ntfs_fnd *fnd_sii = NULL;
|
|
Kmods SIG |
d83023 |
@@ -1946,7 +1946,6 @@ int ntfs_security_init(struct ntfs_sb_info *sbi)
|
|
Kmods SIG |
d83023 |
sbi->security.next_off =
|
|
Kmods SIG |
d83023 |
Quad2Align(sds_size - SecurityDescriptorsBlockSize);
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
- cnt = 0;
|
|
Kmods SIG |
d83023 |
off = 0;
|
|
Kmods SIG |
d83023 |
ne = NULL;
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
@@ -1964,8 +1963,6 @@ int ntfs_security_init(struct ntfs_sb_info *sbi)
|
|
Kmods SIG |
d83023 |
next_id = le32_to_cpu(sii_e->sec_id) + 1;
|
|
Kmods SIG |
d83023 |
if (next_id >= sbi->security.next_id)
|
|
Kmods SIG |
d83023 |
sbi->security.next_id = next_id;
|
|
Kmods SIG |
d83023 |
-
|
|
Kmods SIG |
d83023 |
- cnt += 1;
|
|
Kmods SIG |
d83023 |
}
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
sbi->security.ni = ni;
|
|
Kmods SIG |
d83023 |
--
|
|
Kmods SIG |
d83023 |
2.31.1
|
|
Kmods SIG |
d83023 |
|