kernfs: remove outdated and confusing comment
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 23 Apr 2015 15:14:31 +0000 (17:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 19:28:29 +0000 (12:28 -0700)
Grabbing the parent is not happening anymore since 2010 (e72ceb8ccac5f7
"sysfs: Remove sysfs_get/put_active_two"). Remove this confusing
comment.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/kernfs/file.c

index 2bacb99885665f3a0fae9579a569128195d86fd4..7247252ee9b1beffa3c624cb54db676a707fffe2 100644 (file)
@@ -785,7 +785,6 @@ static unsigned int kernfs_fop_poll(struct file *filp, poll_table *wait)
        struct kernfs_node *kn = filp->f_path.dentry->d_fsdata;
        struct kernfs_open_node *on = kn->attr.open;
 
-       /* need parent for the kobj, grab both */
        if (!kernfs_get_active(kn))
                goto trigger;