Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a706ec1 authored by Jiri Olsa's avatar Jiri Olsa Committed by David S. Miller
Browse files

[AF_PACKET]: Remove unused variable.

parent 2051f11f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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 */

@@ -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;