Skip to content

Commit

Permalink
[AF_PACKET]: Remove unused variable.
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Olsa <olsajiri@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jiri Olsa authored and David S. Miller committed Mar 24, 2008
1 parent 2051f11 commit 2a706ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/packet/af_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1658,7 +1658,7 @@ static int packet_set_ring(struct sock *sk, struct tpacket_req *req, int closing
int err = 0;

if (req->tp_block_nr) {
int i, l;
int i;

/* Sanity tests and some calculations */

Expand Down Expand Up @@ -1687,7 +1687,6 @@ static int packet_set_ring(struct sock *sk, struct tpacket_req *req, int closing
if (unlikely(!pg_vec))
goto out;

l = 0;
for (i = 0; i < req->tp_block_nr; i++) {
char *ptr = pg_vec[i];
struct tpacket_hdr *header;
Expand Down

0 comments on commit 2a706ec

Please sign in to comment.