* [PATCH 2/2] ip6mr: delete redundant variable
@ 2008-07-23 1:46 Wang Chen
0 siblings, 0 replies; only message in thread
From: Wang Chen @ 2008-07-23 1:46 UTC (permalink / raw)
To: David S. Miller; +Cc: NETDEV, YOSHIFUJI Hideaki
*v can be removed as this patch showing.
Same as that of ipv4.
Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
---
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 095bc45..49c75b4 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -932,7 +932,6 @@ static int ip6mr_device_event(struct notifier_block *this,
unsigned long event, void *ptr)
{
struct net_device *dev = ptr;
- struct mif_device *v;
int ct;
if (!net_eq(dev_net(dev), &init_net))
@@ -941,9 +940,8 @@ static int ip6mr_device_event(struct notifier_block *this,
if (event != NETDEV_UNREGISTER)
return NOTIFY_DONE;
- v = &vif6_table[0];
- for (ct = 0; ct < maxvif; ct++, v++) {
- if (v->dev == dev)
+ for (ct = 0; ct < maxvif; ct++) {
+ if (vif6_table[ct].dev == dev)
mif6_delete(ct);
}
return NOTIFY_DONE;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-23 1:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-23 1:46 [PATCH 2/2] ip6mr: delete redundant variable Wang Chen
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).