* [PATCH] IPV6: kill 2 warnings in net/ipv6/ip6_tunnel.c
@ 2003-06-17 15:07 YOSHIFUJI Hideaki / 吉藤英明
2003-06-17 18:14 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2003-06-17 15:07 UTC (permalink / raw)
To: davem; +Cc: vnuorval, netdev, yoshfuji
Hello.
This patch kills 2 warnings in net/ipv6/ip6_tunnel.c.
Thanks.
Index: linux25-LINUS/net/ipv6/ip6_tunnel.c
===================================================================
RCS file: /cvsroot/usagi/usagi-backport/linux25/net/ipv6/ip6_tunnel.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 ip6_tunnel.c
--- linux25-LINUS/net/ipv6/ip6_tunnel.c 10 Jun 2003 13:21:55 -0000 1.1.1.1
+++ linux25-LINUS/net/ipv6/ip6_tunnel.c 17 Jun 2003 14:47:00 -0000
@@ -230,8 +230,6 @@
dev->init = ip6ip6_tnl_dev_init;
memcpy(&t->parms, p, sizeof (*p));
t->parms.name[IFNAMSIZ - 1] = '\0';
- if (t->parms.hop_limit > 255)
- t->parms.hop_limit = -1;
strcpy(dev->name, t->parms.name);
if (!dev->name[0]) {
int i = 0;
@@ -952,7 +950,7 @@
ipv6_addr_copy(&t->parms.laddr, &p->laddr);
ipv6_addr_copy(&t->parms.raddr, &p->raddr);
t->parms.flags = p->flags;
- t->parms.hop_limit = (p->hop_limit <= 255 ? p->hop_limit : -1);
+ t->parms.hop_limit = p->hop_limit;
t->parms.encap_limit = p->encap_limit;
t->parms.flowinfo = p->flowinfo;
ip6ip6_tnl_link_config(t);
--
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] IPV6: kill 2 warnings in net/ipv6/ip6_tunnel.c
2003-06-17 15:07 [PATCH] IPV6: kill 2 warnings in net/ipv6/ip6_tunnel.c YOSHIFUJI Hideaki / 吉藤英明
@ 2003-06-17 18:14 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-06-17 18:14 UTC (permalink / raw)
To: yoshfuji; +Cc: vnuorval, netdev
From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>
Date: Wed, 18 Jun 2003 00:07:28 +0900 (JST)
This patch kills 2 warnings in net/ipv6/ip6_tunnel.c.
Applied, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-06-17 18:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-17 15:07 [PATCH] IPV6: kill 2 warnings in net/ipv6/ip6_tunnel.c YOSHIFUJI Hideaki / 吉藤英明
2003-06-17 18:14 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).