summaryrefslogtreecommitdiff
path: root/fs/ntfs3
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-09-18 22:56:28 +0300
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2021-09-23 19:05:46 +0300
commit808bc0a82bcd2cbe32a139613325b1a3e03f35f1 (patch)
tree689f74824b5f980a84d9c2ed5482a0f93cebab48 /fs/ntfs3
parentd2846bf33c1423ff872c7a7c2afde292ad502c04 (diff)
downloadlinux-808bc0a82bcd2cbe32a139613325b1a3e03f35f1.tar.xz
fs/ntfs3: Remove a useless shadowing variable
There is already a 'u8 mask' defined at the top of the function. There is no need to define a new one here. Remove the useless and shadowing new 'mask' variable. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Kari Argillander <kari.argillander@gmail.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3')
-rw-r--r--fs/ntfs3/bitfunc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ntfs3/bitfunc.c b/fs/ntfs3/bitfunc.c
index bf10e2da5c6e..50d838093790 100644
--- a/fs/ntfs3/bitfunc.c
+++ b/fs/ntfs3/bitfunc.c
@@ -119,8 +119,7 @@ bool are_bits_set(const ulong *lmap, size_t bit, size_t nbits)
pos = nbits & 7;
if (pos) {
- u8 mask = fill_mask[pos];
-
+ mask = fill_mask[pos];
if ((*map & mask) != mask)
return false;
}