This is a small cleanup patch that makes the code just
a little bit cleaner.

Signed-off-by: Eric W. Biederman <[EMAIL PROTECTED]>
---
 fs/sysfs/dir.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c
index f9be856..66d418a 100644
--- a/fs/sysfs/dir.c
+++ b/fs/sysfs/dir.c
@@ -705,10 +705,7 @@ static struct dentry * sysfs_lookup(struct inode *dir, 
struct dentry *dentry,
        if (result)
                goto out;
 
-       for (sd = parent_sd->s_children; sd; sd = sd->s_sibling) {
-               if (!strcmp(sd->s_name, dentry->d_name.name))
-                       break;
-       }
+       sd = sysfs_find_dirent(parent_sd, dentry->d_name.name);
 
        /* no such entry */
        if (!sd)
-- 
1.5.1.1.181.g2de0

_______________________________________________
Containers mailing list
[EMAIL PROTECTED]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
Devel@openvz.org
https://openvz.org/mailman/listinfo/devel

Reply via email to