Merge tag 'for-5.2-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
[platform/kernel/linux-rpi.git] / fs / btrfs / compression.c
index 4ec1df3..84dd4a8 100644 (file)
@@ -160,7 +160,6 @@ csum_failed:
        if (cb->errors) {
                bio_io_error(cb->orig_bio);
        } else {
-               int i;
                struct bio_vec *bvec;
                struct bvec_iter_all iter_all;
 
@@ -169,7 +168,7 @@ csum_failed:
                 * checked so the end_io handlers know about it
                 */
                ASSERT(!bio_flagged(bio, BIO_CLONED));
-               bio_for_each_segment_all(bvec, cb->orig_bio, i, iter_all)
+               bio_for_each_segment_all(bvec, cb->orig_bio, iter_all)
                        SetPageChecked(bvec->bv_page);
 
                bio_endio(cb->orig_bio);