aboutsummaryrefslogtreecommitdiffstats
path: root/net/packet
diff options
context:
space:
mode:
Diffstat (limited to 'net/packet')
-rw-r--r--net/packet/af_packet.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index 94060edbbd70..9034f52659b5 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -1907,7 +1907,6 @@ static int tpacket_fill_skb(struct packet_sock *po, struct sk_buff *skb,
1907 to_write -= dev->hard_header_len; 1907 to_write -= dev->hard_header_len;
1908 } 1908 }
1909 1909
1910 err = -EFAULT;
1911 offset = offset_in_page(data); 1910 offset = offset_in_page(data);
1912 len_max = PAGE_SIZE - offset; 1911 len_max = PAGE_SIZE - offset;
1913 len = ((to_write > len_max) ? len_max : to_write); 1912 len = ((to_write > len_max) ? len_max : to_write);
@@ -1957,7 +1956,6 @@ static int tpacket_snd(struct packet_sock *po, struct msghdr *msg)
1957 1956
1958 mutex_lock(&po->pg_vec_lock); 1957 mutex_lock(&po->pg_vec_lock);
1959 1958
1960 err = -EBUSY;
1961 if (saddr == NULL) { 1959 if (saddr == NULL) {
1962 dev = po->prot_hook.dev; 1960 dev = po->prot_hook.dev;
1963 proto = po->num; 1961 proto = po->num;