]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv4/fib_frontend.c
[IPV6]: inet6_ifinfo_notify should use RTM_DELLINK in addrconf_ifdown
[karo-tx-linux.git] / net / ipv4 / fib_frontend.c
index e61bc7177eb1b868225bf34734f85702fc311969..990633c09dfe4ccdf345d06281880117b57c7906 100644 (file)
@@ -591,7 +591,7 @@ static int fib_inetaddr_event(struct notifier_block *this, unsigned long event,
                break;
        case NETDEV_DOWN:
                fib_del_ifaddr(ifa);
-               if (ifa->ifa_dev && ifa->ifa_dev->ifa_list == NULL) {
+               if (ifa->ifa_dev->ifa_list == NULL) {
                        /* Last address was deleted from this interface.
                           Disable IP.
                         */