From: Christophe JAILLET Date: Sat, 18 Sep 2021 19:56:28 +0000 (+0200) Subject: fs/ntfs3: Remove a useless shadowing variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=808bc0a82bcd2cbe32a139613325b1a3e03f35f1;p=linux.git 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 Reviewed-by: Kari Argillander Signed-off-by: Konstantin Komarov --- diff --git a/fs/ntfs3/bitfunc.c b/fs/ntfs3/bitfunc.c index bf10e2da5c6e3..50d838093790a 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; }