projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b66fef
)
af_packet: struct socket declared/assigned but unused
author
Hagen Paul Pfeifer
<hagen@jauu.net>
Fri, 4 Mar 2011 11:45:04 +0000
(11:45 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 7 Mar 2011 23:51:13 +0000
(15:51 -0800)
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c
patch
|
blob
|
history
diff --git
a/net/packet/af_packet.c
b/net/packet/af_packet.c
index 5efef5b5879ebac8870f3babd03c66cb1817fc66..b5362e96022b84259739770ff87114ccbe743bae 100644
(file)
--- 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;