Re: [PATCH] ntfs: remove redundant initialization to pointer cb_sb_start

From: Namjae Jeon
Date: Fri May 05 2023 - 20:58:07 EST


2023-04-19 0:36 GMT+09:00, Colin Ian King <colin.i.king@xxxxxxxxx>:
> 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@xxxxxxxxx>
Reviewed-by: Namjae Jeon <linkinjeon@xxxxxxxxxx>