aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/file.c')
-rw-r--r--fs/sysfs/file.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
index b21d11b4675..ea0e494d7d5 100644
--- a/fs/sysfs/file.c
+++ b/fs/sysfs/file.c
@@ -405,10 +405,8 @@ int sysfs_add_file(struct sysfs_dirent *dir_sd, const struct attribute *attr,
405 405
406 sysfs_addrm_start(&acxt, dir_sd); 406 sysfs_addrm_start(&acxt, dir_sd);
407 407
408 if (!sysfs_find_dirent(dir_sd, attr->name)) { 408 if (!sysfs_find_dirent(dir_sd, attr->name))
409 sysfs_add_one(&acxt, sd); 409 sysfs_add_one(&acxt, sd);
410 sysfs_link_sibling(sd);
411 }
412 410
413 if (!sysfs_addrm_finish(&acxt)) { 411 if (!sysfs_addrm_finish(&acxt)) {
414 sysfs_put(sd); 412 sysfs_put(sd);