iterate_and_advance(): get rid of magic in case when n is 0
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 29 Apr 2021 00:59:08 +0000 (20:59 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 10 Jun 2021 15:45:15 +0000 (11:45 -0400)
commitf5da83545f4ed2c1a1648b7d760a6fc358798e52
tree9a2f903521c3810a7f3a159e3d3e534ba60f45c3
parent594e450b3f4435a9d663df3d48d7fa34e685cbd1
iterate_and_advance(): get rid of magic in case when n is 0

iov_iter_advance() needs to do some non-trivial work when it's given
0 as argument (skip all empty iovecs, mostly).  We used to implement
it via iterate_and_advance(); we no longer do so and for all other
users of iterate_and_advance() zero length is a no-op.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
lib/iov_iter.c