summaryrefslogtreecommitdiff
path: root/fs/ntfs3
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2021-12-30 18:59:00 +0300
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2022-06-07 19:40:24 +0300
commit560e613352b4a65c5c397e689a997fb04bd5f928 (patch)
tree7d02149ab50fbf34ddcc80bf44fc2d628f155b77 /fs/ntfs3
parent548744f84456946181ed6dc0ac6be8267f167d28 (diff)
downloadlinux-560e613352b4a65c5c397e689a997fb04bd5f928.tar.xz
fs/ntfs3: Remove redundant assignment to variable frame
Variable frame is assigned a value that is never read. The assignment is redundant and can be removed. Cleans up the clang-scan build warning: fs/ntfs3/file.c:995:3: warning: Value stored to 'frame' is never read [deadcode.DeadStores] frame = pos >> frame_bits; Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3')
-rw-r--r--fs/ntfs3/file.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ntfs3/file.c b/fs/ntfs3/file.c
index 3bae76930e68..27c32692513c 100644
--- a/fs/ntfs3/file.c
+++ b/fs/ntfs3/file.c
@@ -992,7 +992,6 @@ static ssize_t ntfs_compress_write(struct kiocb *iocb, struct iov_iter *from)
if (bytes > count)
bytes = count;
- frame = pos >> frame_bits;
frame_vbo = pos & ~(frame_size - 1);
index = frame_vbo >> PAGE_SHIFT;