OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b193ad
)
ipv6: totlen is declared and assigned but not used
author
Hagen Paul Pfeifer
<hagen@jauu.net>
Fri, 25 Feb 2011 05:45:17 +0000
(
05:45
+0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 25 Feb 2011 22:00:21 +0000
(14:00 -0800)
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_output.c
patch
|
blob
|
history
diff --git
a/net/ipv6/ip6_output.c
b/net/ipv6/ip6_output.c
index
2600e22
..
25a2647
100644
(file)
--- a/
net/ipv6/ip6_output.c
+++ b/
net/ipv6/ip6_output.c
@@
-274,13
+274,10
@@
int ip6_nd_hdr(struct sock *sk, struct sk_buff *skb, struct net_device *dev,
{
struct ipv6_pinfo *np = inet6_sk(sk);
struct ipv6hdr *hdr;
- int totlen;
skb->protocol = htons(ETH_P_IPV6);
skb->dev = dev;
- totlen = len + sizeof(struct ipv6hdr);
-
skb_reset_network_header(skb);
skb_put(skb, sizeof(struct ipv6hdr));
hdr = ipv6_hdr(skb);