]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/core/net_namespace.c
bury struct proc_ns in fs/proc
[mirror_ubuntu-bionic-kernel.git] / net / core / net_namespace.c
index 4d4acaf7b4985012e2c4eebc3da711d359d74b1e..ce780c722e48ca2bf35534895ef0b7dc0a9541d5 100644 (file)
@@ -337,7 +337,6 @@ EXPORT_SYMBOL_GPL(__put_net);
 
 struct net *get_net_ns_by_fd(int fd)
 {
-       struct proc_ns *ei;
        struct file *file;
        struct ns_common *ns;
        struct net *net;
@@ -346,8 +345,7 @@ struct net *get_net_ns_by_fd(int fd)
        if (IS_ERR(file))
                return ERR_CAST(file);
 
-       ei = get_proc_ns(file_inode(file));
-       ns = ei->ns;
+       ns = get_proc_ns(file_inode(file));
        if (ns->ops == &netns_operations)
                net = get_net(container_of(ns, struct net, ns));
        else