Skip to content

Commit 04faa6c

Browse files
ColinIanKingbrauner
authored andcommitted
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 <[email protected]> Reviewed-by: Namjae Jeon <[email protected]> Message-Id: <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent f1fcbaa commit 04faa6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ntfs/compress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static int ntfs_decompress(struct page *dest_pages[], int completed_pages[],
161161
*/
162162
u8 *cb_end = cb_start + cb_size; /* End of cb. */
163163
u8 *cb = cb_start; /* Current position in cb. */
164-
u8 *cb_sb_start = cb; /* Beginning of the current sb in the cb. */
164+
u8 *cb_sb_start; /* Beginning of the current sb in the cb. */
165165
u8 *cb_sb_end; /* End of current sb / beginning of next sb. */
166166

167167
/* Variables for uncompressed data / destination. */

0 commit comments

Comments
 (0)