net: removing unused variable
Subsystems (3)
PATCH 1/1 net: removing unused variable
removing unused variable
Signed-off-by Jiri Olsa <[email protected]>
--- net/packet/af_packet.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
net/packet/af_packet.c +1 -2
@@ -1658,7 +1658,7 @@ static int packet_set_ring(struct sock *sk, struct tpacket_req *req, int closingint 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 closingif (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;
From: Jiri Olsa <[email protected]>
Date: Fri, 14 Mar 2008 14:33:10 +0100
Quoted 3 lines
removing unused variable
Signed-off-by Jiri Olsa <[email protected]>
Applied to net-2.6.26, thanks.