mm: minor cleanup of iov_iter_single_seg_count()

The function does not modify iov_iter which 'i' points to.

Signed-off-by: Maxim Patlasov <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
This commit is contained in:
Maxim Patlasov 2012-10-26 19:50:04 +04:00 • committed by Miklos Szeredi
commit d28574e043
2 changed files with 2 additions and 2 deletions

View file

@ -2056,7 +2056,7 @@ EXPORT_SYMBOL(iov_iter_fault_in_readable);
/*
* Return the count of just the current iov_iter segment.
*/
size_t iov_iter_single_seg_count(struct iov_iter *i)
size_t iov_iter_single_seg_count(const struct iov_iter *i)
{
const struct iovec *iov = i->iov;
if (i->nr_segs == 1)