aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/dir.c')
-rw-r--r--fs/sysfs/dir.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c
index 620603296c6c..a0da2b05a754 100644
--- a/fs/sysfs/dir.c
+++ b/fs/sysfs/dir.c
@@ -609,11 +609,8 @@ static void sysfs_drop_dentry(struct sysfs_dirent *sd)
609 * 609 *
610 * LOCKING: 610 * LOCKING:
611 * All mutexes acquired by sysfs_addrm_start() are released. 611 * All mutexes acquired by sysfs_addrm_start() are released.
612 *
613 * RETURNS:
614 * Number of added/removed sysfs_dirents since sysfs_addrm_start().
615 */ 612 */
616int sysfs_addrm_finish(struct sysfs_addrm_cxt *acxt) 613void sysfs_addrm_finish(struct sysfs_addrm_cxt *acxt)
617{ 614{
618 /* release resources acquired by sysfs_addrm_start() */ 615 /* release resources acquired by sysfs_addrm_start() */
619 mutex_unlock(&sysfs_mutex); 616 mutex_unlock(&sysfs_mutex);
@@ -639,8 +636,6 @@ int sysfs_addrm_finish(struct sysfs_addrm_cxt *acxt)
639 sysfs_deactivate(sd); 636 sysfs_deactivate(sd);
640 sysfs_put(sd); 637 sysfs_put(sd);
641 } 638 }
642
643 return acxt->cnt;
644} 639}
645 640
646/** 641/**