diff options
-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 5efef5b5879e..b5362e96022b 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, | |||
966 | 966 | ||
967 | static int tpacket_snd(struct packet_sock *po, struct msghdr *msg) | 967 | static int tpacket_snd(struct packet_sock *po, struct msghdr *msg) |
968 | { | 968 | { |
969 | struct socket *sock; | ||
970 | struct sk_buff *skb; | 969 | struct sk_buff *skb; |
971 | struct net_device *dev; | 970 | struct net_device *dev; |
972 | __be16 proto; | 971 | __be16 proto; |
@@ -978,8 +977,6 @@ static int tpacket_snd(struct packet_sock *po, struct msghdr *msg) | |||
978 | int len_sum = 0; | 977 | int len_sum = 0; |
979 | int status = 0; | 978 | int status = 0; |
980 | 979 | ||
981 | sock = po->sk.sk_socket; | ||
982 | |||
983 | mutex_lock(&po->pg_vec_lock); | 980 | mutex_lock(&po->pg_vec_lock); |
984 | 981 | ||
985 | err = -EBUSY; | 982 | err = -EBUSY; |