diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-12-16 03:39:31 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-11 21:53:35 +0200 |
commit | 01e97e6517053d7c0b9af5248e944a9209909cf5 (patch) | |
tree | 30f57eededa62a390543b3a596d81006deb22384 /crypto/algif_hash.c | |
parent | Merge remote-tracking branch 'dh/afs' into for-davem (diff) | |
download | linux-01e97e6517053d7c0b9af5248e944a9209909cf5.tar.xz linux-01e97e6517053d7c0b9af5248e944a9209909cf5.zip |
new helper: msg_data_left()
convert open-coded instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'crypto/algif_hash.c')
-rw-r--r-- | crypto/algif_hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/algif_hash.c b/crypto/algif_hash.c index 0a465e0f3012..1396ad0787fc 100644 --- a/crypto/algif_hash.c +++ b/crypto/algif_hash.c @@ -56,8 +56,8 @@ static int hash_sendmsg(struct socket *sock, struct msghdr *msg, ctx->more = 0; - while (iov_iter_count(&msg->msg_iter)) { - int len = iov_iter_count(&msg->msg_iter); + while (msg_data_left(msg)) { + int len = msg_data_left(msg); if (len > limit) len = limit; |