Skip to content

Commit

Permalink
af_packet: struct socket declared/assigned but unused
Browse files Browse the repository at this point in the history
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Hagen Paul Pfeifer authored and David S. Miller committed Mar 7, 2011
1 parent 4b66fef commit e143038
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/packet/af_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit e143038

Please sign in to comment.