diff options
author | Rui Xiang <rui.xiang@huawei.com> | 2014-01-23 15:55:41 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 16:37:01 -0800 |
commit | cdf7e8dded6212cb29f758017a613e4eefc4ce9e (patch) | |
tree | 3a8de28dee0faaedc13379e9e1d889d9a36efe8c /fs/proc/proc_devtree.c | |
parent | 9f6e963f06c19a57a876cb77a9c87f6a56295b13 (diff) | |
download | op-kernel-dev-cdf7e8dded6212cb29f758017a613e4eefc4ce9e.zip op-kernel-dev-cdf7e8dded6212cb29f758017a613e4eefc4ce9e.tar.gz |
proc: set attributes of pde using accessor functions
Use existing accessors proc_set_user() and proc_set_size() to set
attributes. Just a cleanup.
Signed-off-by: Rui Xiang <rui.xiang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/proc_devtree.c')
-rw-r--r-- | fs/proc/proc_devtree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c index 70779b2..c824187 100644 --- a/fs/proc/proc_devtree.c +++ b/fs/proc/proc_devtree.c @@ -74,9 +74,9 @@ __proc_device_tree_add_prop(struct proc_dir_entry *de, struct property *pp, return NULL; if (!strncmp(name, "security-", 9)) - ent->size = 0; /* don't leak number of password chars */ + proc_set_size(ent, 0); /* don't leak number of password chars */ else - ent->size = pp->length; + proc_set_size(ent, pp->length); return ent; } |