All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: removing unused variable
@ 2008-03-14 13:33 Jiri Olsa
  2008-03-24  5:43 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Jiri Olsa @ 2008-03-14 13:33 UTC (permalink / raw)
  To: kernel-janitors

removing unused variable

Signed-off-by: Jiri Olsa <olsajiri@gmail.com>
---
 net/packet/af_packet.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index b8b827c..a56ed21 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;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net: removing unused variable
  2008-03-14 13:33 [PATCH] net: removing unused variable Jiri Olsa
@ 2008-03-24  5:43 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-03-24  5:43 UTC (permalink / raw)
  To: kernel-janitors

From: Jiri Olsa <olsajiri@gmail.com>
Date: Fri, 14 Mar 2008 14:33:10 +0100

> removing unused variable
> 
> Signed-off-by: Jiri Olsa <olsajiri@gmail.com>

Applied to net-2.6.26, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-24  5:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-14 13:33 [PATCH] net: removing unused variable Jiri Olsa
2008-03-24  5:43 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.