]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/ipv4/devinet.c
ipv4: coding style: comparison for inequality with NULL
[mirror_ubuntu-bionic-kernel.git] / net / ipv4 / devinet.c
index 0ee21689d37eef247ab87bc17842b21665b487a4..419d23c53ec756327178f9101ea8287d671c9a47 100644 (file)
@@ -1290,7 +1290,7 @@ __be32 inet_confirm_addr(struct net *net, struct in_device *in_dev,
        __be32 addr = 0;
        struct net_device *dev;
 
-       if (in_dev != NULL)
+       if (in_dev)
                return confirm_addr_indev(in_dev, dst, local, scope);
 
        rcu_read_lock();