sysfs: introduce [__]sysfs_remove()
Given a sysfs_dirent, there is no reason to have multiple versions of removal functions. A function which removes the specified sysfs_dirent and its descendants is enough. This patch intorduces [__}sysfs_remove() which replaces all internal variations of removal functions. This will be the only removal function in the planned new sysfs_dirent based interface. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
bcdde7e221
commit
250f7c3fee
@@ -330,7 +330,7 @@ int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const char *name,
|
||||
|
||||
sd = sysfs_find_dirent(dir_sd, name, ns);
|
||||
if (sd)
|
||||
sysfs_remove_one(&acxt, sd);
|
||||
__sysfs_remove(&acxt, sd);
|
||||
|
||||
sysfs_addrm_finish(&acxt);
|
||||
|
||||
|
Reference in New Issue
Block a user