Blame SOURCES/0079-fs-ntfs3-Remove-a-useless-shadowing-variable.patch
|
Kmods SIG |
8b815c |
From 808bc0a82bcd2cbe32a139613325b1a3e03f35f1 Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
8b815c |
From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
|
|
Kmods SIG |
8b815c |
Date: Sat, 18 Sep 2021 21:56:28 +0200
|
|
Kmods SIG |
8b815c |
Subject: [Backport 808bc0a82bcd] src: Remove a useless shadowing variable
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
There is already a 'u8 mask' defined at the top of the function.
|
|
Kmods SIG |
8b815c |
There is no need to define a new one here.
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
Remove the useless and shadowing new 'mask' variable.
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
|
|
Kmods SIG |
8b815c |
Reviewed-by: Kari Argillander <kari.argillander@gmail.com>
|
|
Kmods SIG |
8b815c |
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
|
|
Kmods SIG |
8b815c |
---
|
|
Kmods SIG |
8b815c |
src/bitfunc.c | 3 +--
|
|
Kmods SIG |
8b815c |
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
diff --git a/src/bitfunc.c b/src/bitfunc.c
|
|
Kmods SIG |
8b815c |
index bf10e2da5c6e3d29d3788055b2b664927cc9f29b..50d838093790a1f07474ea201510dde42d2431f3 100644
|
|
Kmods SIG |
8b815c |
--- a/src/bitfunc.c
|
|
Kmods SIG |
8b815c |
+++ b/src/bitfunc.c
|
|
Kmods SIG |
8b815c |
@@ -119,8 +119,7 @@ bool are_bits_set(const ulong *lmap, size_t bit, size_t nbits)
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
pos = nbits & 7;
|
|
Kmods SIG |
8b815c |
if (pos) {
|
|
Kmods SIG |
8b815c |
- u8 mask = fill_mask[pos];
|
|
Kmods SIG |
8b815c |
-
|
|
Kmods SIG |
8b815c |
+ mask = fill_mask[pos];
|
|
Kmods SIG |
8b815c |
if ((*map & mask) != mask)
|
|
Kmods SIG |
8b815c |
return false;
|
|
Kmods SIG |
8b815c |
}
|
|
Kmods SIG |
8b815c |
--
|
|
Kmods SIG |
8b815c |
2.31.1
|
|
Kmods SIG |
8b815c |
|