projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2051f11
)
[AF_PACKET]: Remove unused variable.
author
Jiri Olsa
<olsajiri@gmail.com>
Mon, 24 Mar 2008 05:42:34 +0000
(22:42 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 24 Mar 2008 05:42:34 +0000
(22:42 -0700)
Signed-off-by: Jiri Olsa <olsajiri@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c
patch
|
blob
|
blame
|
history
diff --git
a/net/packet/af_packet.c
b/net/packet/af_packet.c
index b8b827c7062d3a7a50f6032f76cdd61bfdf634dd..a56ed2120e07134b9c9f2cde394fb7dc152ef8e6 100644
(file)
--- 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;