mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 09:34:12 +08:00
[AF_PACKET]: Remove unused variable.
Signed-off-by: Jiri Olsa <olsajiri@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2051f11fb8
commit
2a706ec188
@ -1658,7 +1658,7 @@ static int packet_set_ring(struct sock *sk, struct tpacket_req *req, int closing
|
|||||||
int err = 0;
|
int err = 0;
|
||||||
|
|
||||||
if (req->tp_block_nr) {
|
if (req->tp_block_nr) {
|
||||||
int i, l;
|
int i;
|
||||||
|
|
||||||
/* Sanity tests and some calculations */
|
/* 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))
|
if (unlikely(!pg_vec))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
l = 0;
|
|
||||||
for (i = 0; i < req->tp_block_nr; i++) {
|
for (i = 0; i < req->tp_block_nr; i++) {
|
||||||
char *ptr = pg_vec[i];
|
char *ptr = pg_vec[i];
|
||||||
struct tpacket_hdr *header;
|
struct tpacket_hdr *header;
|
||||||
|
Loading…
Reference in New Issue
Block a user