diff options
author | David Howells <dhowells@redhat.com> | 2015-04-01 11:03:46 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2015-04-01 11:03:46 -0400 |
commit | bfd4e9562c8769feadba9b5262200448656b8048 (patch) | |
tree | e7662f0fa0d95fafde29e7ac4e902f8bca9fccc2 /fs/afs | |
parent | 382d7974de31ef5e64dceee0d9cada3d3864b767 (diff) |
AFS: afs_send_empty_reply() doesn't require an iovec array
afs_send_empty_reply() doesn't require an iovec array with which to initialise
the msghdr, but can pass NULL instead.
Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs')
-rw-r--r-- | fs/afs/rxrpc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/afs/rxrpc.c b/fs/afs/rxrpc.c index dbc732e9a5c0..3a57a1b0fb51 100644 --- a/fs/afs/rxrpc.c +++ b/fs/afs/rxrpc.c | |||
@@ -770,15 +770,12 @@ static int afs_deliver_cm_op_id(struct afs_call *call, struct sk_buff *skb, | |||
770 | void afs_send_empty_reply(struct afs_call *call) | 770 | void afs_send_empty_reply(struct afs_call *call) |
771 | { | 771 | { |
772 | struct msghdr msg; | 772 | struct msghdr msg; |
773 | struct kvec iov[1]; | ||
774 | 773 | ||
775 | _enter(""); | 774 | _enter(""); |
776 | 775 | ||
777 | iov[0].iov_base = NULL; | ||
778 | iov[0].iov_len = 0; | ||
779 | msg.msg_name = NULL; | 776 | msg.msg_name = NULL; |
780 | msg.msg_namelen = 0; | 777 | msg.msg_namelen = 0; |
781 | iov_iter_kvec(&msg.msg_iter, WRITE | ITER_KVEC, iov, 0, 0); /* WTF? */ | 778 | iov_iter_kvec(&msg.msg_iter, WRITE | ITER_KVEC, NULL, 0, 0); |
782 | msg.msg_control = NULL; | 779 | msg.msg_control = NULL; |
783 | msg.msg_controllen = 0; | 780 | msg.msg_controllen = 0; |
784 | msg.msg_flags = 0; | 781 | msg.msg_flags = 0; |