Merge tag 'mm-nonmm-stable-2022-05-26' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / fs / ntfs / file.c
index e1392a9b8cebe89f3f559fb353f4f4f95bc5efa3..a8abe2296514e4ab26d8f4fae266f86234b8c314 100644 (file)
@@ -1772,11 +1772,11 @@ static ssize_t ntfs_perform_write(struct file *file, struct iov_iter *i,
        last_vcn = -1;
        do {
                VCN vcn;
-               pgoff_t idx, start_idx;
+               pgoff_t start_idx;
                unsigned ofs, do_pages, u;
                size_t copied;
 
-               start_idx = idx = pos >> PAGE_SHIFT;
+               start_idx = pos >> PAGE_SHIFT;
                ofs = pos & ~PAGE_MASK;
                bytes = PAGE_SIZE - ofs;
                do_pages = 1;