Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=dffe4f048b420f1af0b10a6090add0c5ea69e585
Commit:     dffe4f048b420f1af0b10a6090add0c5ea69e585
Parent:     ed8b548ce3cb988f59a0fd9af6ccdc4f8198cd19
Author:     Micah Gruber <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 10 23:04:19 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Jul 10 23:04:19 2007 -0700

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/ipv6/addrconf.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 11c0028..95737ab 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);
        }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to