summaryrefslogtreecommitdiff
path: root/fs/ntfs
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2023-04-18 16:36:07 +0100
committerChristian Brauner <brauner@kernel.org>2023-05-19 11:58:14 +0200
commit04faa6cfd44972c2e36b6528a4719e3880db0c90 (patch)
tree7dff339e00f7586828f6709e55f78c13260b58ab /fs/ntfs
parentf1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6 (diff)
ntfs: remove redundant initialization to pointer cb_sb_start
The pointer cb_sb_start is being initialized with a value that is never read, it is being re-assigned the same value later on when it is first being used. The initialization is redundant and can be removed. Cleans up clang scan build warning: fs/ntfs/compress.c:164:6: warning: Value stored to 'cb_sb_start' during its initialization is never read [deadcode.DeadStores] u8 *cb_sb_start = cb; /* Beginning of the current sb in the cb. */ Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Reviewed-by: Namjae Jeon <linkinjeon@kernel.org> Message-Id: <20230418153607.3125704-1-colin.i.king@gmail.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/ntfs')
-rw-r--r--fs/ntfs/compress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs/compress.c b/fs/ntfs/compress.c
index f9cb180b6f6b..761aaa0195d6 100644
--- a/fs/ntfs/compress.c
+++ b/fs/ntfs/compress.c
@@ -161,7 +161,7 @@ static int ntfs_decompress(struct page *dest_pages[], int completed_pages[],
*/
u8 *cb_end = cb_start + cb_size; /* End of cb. */
u8 *cb = cb_start; /* Current position in cb. */
- u8 *cb_sb_start = cb; /* Beginning of the current sb in the cb. */
+ u8 *cb_sb_start; /* Beginning of the current sb in the cb. */
u8 *cb_sb_end; /* End of current sb / beginning of next sb. */
/* Variables for uncompressed data / destination. */