fs/ntfs3: Remove a useless shadowing variable
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 18 Sep 2021 19:56:28 +0000 (21:56 +0200)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 23 Sep 2021 16:05:46 +0000 (19:05 +0300)
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>
fs/ntfs3/bitfunc.c

index bf10e2da5c6e3d29d3788055b2b664927cc9f29b..50d838093790a1f07474ea201510dde42d2431f3 100644 (file)
@@ -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;
        }