diff options
Diffstat (limited to 'fs/proc/self.c')
-rw-r--r-- | fs/proc/self.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/fs/proc/self.c b/fs/proc/self.c index 6b6a993b5c25..ffeb202ec942 100644 --- a/fs/proc/self.c +++ b/fs/proc/self.c | |||
@@ -36,18 +36,10 @@ static void *proc_self_follow_link(struct dentry *dentry, struct nameidata *nd) | |||
36 | return NULL; | 36 | return NULL; |
37 | } | 37 | } |
38 | 38 | ||
39 | static void proc_self_put_link(struct dentry *dentry, struct nameidata *nd, | ||
40 | void *cookie) | ||
41 | { | ||
42 | char *s = nd_get_link(nd); | ||
43 | if (!IS_ERR(s)) | ||
44 | kfree(s); | ||
45 | } | ||
46 | |||
47 | static const struct inode_operations proc_self_inode_operations = { | 39 | static const struct inode_operations proc_self_inode_operations = { |
48 | .readlink = proc_self_readlink, | 40 | .readlink = proc_self_readlink, |
49 | .follow_link = proc_self_follow_link, | 41 | .follow_link = proc_self_follow_link, |
50 | .put_link = proc_self_put_link, | 42 | .put_link = kfree_put_link, |
51 | }; | 43 | }; |
52 | 44 | ||
53 | static unsigned self_inum; | 45 | static unsigned self_inum; |