Merge branch 'locking/arch-atomic' into locking/core, because the topic is ready
[cascardo/linux.git] / lib / iov_iter.c
index 28cb431..0cd5227 100644 (file)
 #define iterate_and_advance(i, n, v, I, B, K) {                        \
        if (unlikely(i->count < n))                             \
                n = i->count;                                   \
-       if (n) {                                                \
+       if (i->count) {                                         \
                size_t skip = i->iov_offset;                    \
                if (unlikely(i->type & ITER_BVEC)) {            \
                        const struct bio_vec *bvec;             \