diff options
author | Hagen Paul Pfeifer <hagen@jauu.net> | 2011-03-04 11:45:04 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-07 23:51:13 (GMT) |
commit | e143038f4dda10a51985b9a3f9fb07d73a5eadfa (patch) | |
tree | 8c96993a468d762bfc4fe7bb299b424ffe02cdf0 /net/packet/af_packet.c | |
parent | 4b66fef9b591b95f447aea12242a1133deb0bd22 (diff) | |
download | linux-fsl-qoriq-e143038f4dda10a51985b9a3f9fb07d73a5eadfa.tar.xz |
af_packet: struct socket declared/assigned but unused
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r-- | net/packet/af_packet.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 5efef5b..b5362e9 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c @@ -966,7 +966,6 @@ static int tpacket_fill_skb(struct packet_sock *po, struct sk_buff *skb, static int tpacket_snd(struct packet_sock *po, struct msghdr *msg) { - struct socket *sock; struct sk_buff *skb; struct net_device *dev; __be16 proto; @@ -978,8 +977,6 @@ static int tpacket_snd(struct packet_sock *po, struct msghdr *msg) int len_sum = 0; int status = 0; - sock = po->sk.sk_socket; - mutex_lock(&po->pg_vec_lock); err = -EBUSY; |