aboutsummaryrefslogtreecommitdiffstats
path: root/net/netrom
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2015-03-02 02:37:48 -0500
committerDavid S. Miller <davem@davemloft.net>2015-03-02 13:06:31 -0500
commit1b784140474e4fc94281a49e96c67d29df0efbde (patch)
tree569e9813ae7ab79616849b117c6b50b3d6e4dabb /net/netrom
parent39a0295f901423e260a034ac7c3211ecaa9c2745 (diff)
net: Remove iocb argument from sendmsg and recvmsg
After TIPC doesn't depend on iocb argument in its internal implementations of sendmsg() and recvmsg() hooks defined in proto structure, no any user is using iocb argument in them at all now. Then we can drop the redundant iocb argument completely from kinds of implementations of both sendmsg() and recvmsg() in the entire networking stack. Cc: Christoph Hellwig <hch@lst.de> Suggested-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netrom')
-rw-r--r--net/netrom/af_netrom.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c
index 69f1d5e9959f..b987fd56c3c5 100644
--- a/net/netrom/af_netrom.c
+++ b/net/netrom/af_netrom.c
@@ -1023,8 +1023,7 @@ int nr_rx_frame(struct sk_buff *skb, struct net_device *dev)
1023 return 1; 1023 return 1;
1024} 1024}
1025 1025
1026static int nr_sendmsg(struct kiocb *iocb, struct socket *sock, 1026static int nr_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
1027 struct msghdr *msg, size_t len)
1028{ 1027{
1029 struct sock *sk = sock->sk; 1028 struct sock *sk = sock->sk;
1030 struct nr_sock *nr = nr_sk(sk); 1029 struct nr_sock *nr = nr_sk(sk);
@@ -1133,8 +1132,8 @@ out:
1133 return err; 1132 return err;
1134} 1133}
1135 1134
1136static int nr_recvmsg(struct kiocb *iocb, struct socket *sock, 1135static int nr_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
1137 struct msghdr *msg, size_t size, int flags) 1136 int flags)
1138{ 1137{
1139 struct sock *sk = sock->sk; 1138 struct sock *sk = sock->sk;
1140 DECLARE_SOCKADDR(struct sockaddr_ax25 *, sax, msg->msg_name); 1139 DECLARE_SOCKADDR(struct sockaddr_ax25 *, sax, msg->msg_name);