aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/symlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/symlink.c')
-rw-r--r--fs/sysfs/symlink.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/sysfs/symlink.c b/fs/sysfs/symlink.c
index 90484533801e..c129f307936a 100644
--- a/fs/sysfs/symlink.c
+++ b/fs/sysfs/symlink.c
@@ -92,10 +92,8 @@ int sysfs_create_link(struct kobject * kobj, struct kobject * target, const char
92 92
93 sysfs_addrm_start(&acxt, parent_sd); 93 sysfs_addrm_start(&acxt, parent_sd);
94 94
95 if (!sysfs_find_dirent(parent_sd, name)) { 95 if (!sysfs_find_dirent(parent_sd, name))
96 sysfs_add_one(&acxt, sd); 96 sysfs_add_one(&acxt, sd);
97 sysfs_link_sibling(sd);
98 }
99 97
100 if (!sysfs_addrm_finish(&acxt)) { 98 if (!sysfs_addrm_finish(&acxt)) {
101 error = -EEXIST; 99 error = -EEXIST;