diff options
Diffstat (limited to 'net/packet')
-rw-r--r-- | net/packet/af_packet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index b8b827c7062d..a56ed2120e07 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -1658,7 +1658,7 @@ static int packet_set_ring(struct sock *sk, struct tpacket_req *req, int closing | |||
1658 | int err = 0; | 1658 | int err = 0; |
1659 | 1659 | ||
1660 | if (req->tp_block_nr) { | 1660 | if (req->tp_block_nr) { |
1661 | int i, l; | 1661 | int i; |
1662 | 1662 | ||
1663 | /* Sanity tests and some calculations */ | 1663 | /* Sanity tests and some calculations */ |
1664 | 1664 | ||
@@ -1687,7 +1687,6 @@ static int packet_set_ring(struct sock *sk, struct tpacket_req *req, int closing | |||
1687 | if (unlikely(!pg_vec)) | 1687 | if (unlikely(!pg_vec)) |
1688 | goto out; | 1688 | goto out; |
1689 | 1689 | ||
1690 | l = 0; | ||
1691 | for (i = 0; i < req->tp_block_nr; i++) { | 1690 | for (i = 0; i < req->tp_block_nr; i++) { |
1692 | char *ptr = pg_vec[i]; | 1691 | char *ptr = pg_vec[i]; |
1693 | struct tpacket_hdr *header; | 1692 | struct tpacket_hdr *header; |