summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorMicah Gruber <micah.gruber@gmail.com>2007-07-11 08:04:19 +0200
committerDavid S. Miller <davem@davemloft.net>2007-07-11 08:04:19 +0200
commitdffe4f048b420f1af0b10a6090add0c5ea69e585 (patch)
tree9229870705d35aaf0190521514e865625844a5e3 /net/ipv6
parent[DECNET]: Another unnecessary net/tcp.h inclusion in net/dn.h (diff)
downloadlinux-dffe4f048b420f1af0b10a6090add0c5ea69e585.tar.xz
linux-dffe4f048b420f1af0b10a6090add0c5ea69e585.zip
[IPV6]: Remove unneeded pointer idev from addrconf_cleanup().
This trivial patch removes the unneeded pointer idev returned from __in6_dev_get(), which is never used. The check for NULL can be simply done by if (__in6_dev_get(dev) == NULL). Signed-off-by: Micah Gruber <micah.gruber@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/addrconf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 11c0028863b0..95737ab040ec 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -4243,7 +4243,6 @@ errout:
void __exit addrconf_cleanup(void)
{
struct net_device *dev;
- struct inet6_dev *idev;
struct inet6_ifaddr *ifa;
int i;
@@ -4261,7 +4260,7 @@ void __exit addrconf_cleanup(void)
*/
for_each_netdev(dev) {
- if ((idev = __in6_dev_get(dev)) == NULL)
+ if (__in6_dev_get(dev) == NULL)
continue;
addrconf_ifdown(dev, 1);
}