Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
[profile/ivi/kernel-adaptation-intel-automotive.git] / fs / sysfs / inode.c
index 1ee18c8..e23f288 100644 (file)
@@ -324,8 +324,6 @@ int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const void *ns, const cha
        sysfs_addrm_start(&acxt, dir_sd);
 
        sd = sysfs_find_dirent(dir_sd, ns, name);
-       if (sd && (sd->s_ns != ns))
-               sd = NULL;
        if (sd)
                sysfs_remove_one(&acxt, sd);