Skip to content

Commit e143038

Browse files
hgndavem330
authored andcommitted
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>
1 parent 4b66fef commit e143038

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎net/packet/af_packet.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,6 @@ static int tpacket_fill_skb(struct packet_sock *po, struct sk_buff *skb,
966966

967967
static int tpacket_snd(struct packet_sock *po, struct msghdr *msg)
968968
{
969-
struct socket *sock;
970969
struct sk_buff *skb;
971970
struct net_device *dev;
972971
__be16 proto;
@@ -978,8 +977,6 @@ static int tpacket_snd(struct packet_sock *po, struct msghdr *msg)
978977
int len_sum = 0;
979978
int status = 0;
980979

981-
sock = po->sk.sk_socket;
982-
983980
mutex_lock(&po->pg_vec_lock);
984981

985982
err = -EBUSY;

0 commit comments

Comments
 (0)