aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2007-10-10 21:14:03 -0700
committerDavid S. Miller <davem@davemloft.net>2007-10-10 21:14:03 -0700
commit7ee015e0fa3c856416e9477aac4b850ec6f09017 (patch)
treeb91741163f47515d00faba9d36d37fcf03ded29f /net
parent3b71535f357a2e5d013a44a06b0c26a6a8d8fb5b (diff)
downloadkernel_samsung_smdk4412-7ee015e0fa3c856416e9477aac4b850ec6f09017.zip
kernel_samsung_smdk4412-7ee015e0fa3c856416e9477aac4b850ec6f09017.tar.gz
kernel_samsung_smdk4412-7ee015e0fa3c856416e9477aac4b850ec6f09017.tar.bz2
[NET]: cleanup 3rd argument in netlink_sendskb
netlink_sendskb does not use third argument. Clean it and save a couple of bytes. Signed-off-by: Denis V. Lunev <den@openvz.org> Acked-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/netlink/af_netlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index f934f54..a5bd63c 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -791,7 +791,7 @@ int netlink_attachskb(struct sock *sk, struct sk_buff *skb, int nonblock,
return 0;
}
-int netlink_sendskb(struct sock *sk, struct sk_buff *skb, int protocol)
+int netlink_sendskb(struct sock *sk, struct sk_buff *skb)
{
int len = skb->len;
@@ -853,7 +853,7 @@ retry:
if (err)
return err;
- return netlink_sendskb(sk, skb, ssk->sk_protocol);
+ return netlink_sendskb(sk, skb);
}
int netlink_has_listeners(struct sock *sk, unsigned int group)