summaryrefslogtreecommitdiffstats
path: root/net/packet/af_packet.c
diff options
context:
space:
mode:
authorJiri Olsa <olsajiri@gmail.com>2008-03-24 06:42:34 +0100
committerDavid S. Miller <davem@davemloft.net>2008-03-24 06:42:34 +0100
commit2a706ec1881709b8a90d8ccdd1fde40b3cc79364 (patch)
tree0df46f33381ab647fb853da9ae46c0a089ef5e8b /net/packet/af_packet.c
parent[TCP]: Shrink syncookie_secret by 8 byte. (diff)
downloadlinux-2a706ec1881709b8a90d8ccdd1fde40b3cc79364.tar.xz
linux-2a706ec1881709b8a90d8ccdd1fde40b3cc79364.zip
[AF_PACKET]: Remove unused variable.
Signed-off-by: Jiri Olsa <olsajiri@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/packet/af_packet.c3
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
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;