aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-04-14 16:59:00 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-29 15:41:42 -0400
commite53cfda5d2c90a6dd763eb72034c775add729e40 (patch)
treede6255d83be193bc5cea0bbf8a851139a0384d50 /security
parentfca660beb875a0449bebcfe2d6696cadb4cc593c (diff)
tomoyo_close_control: don't bother with return value
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security')
-rw-r--r--security/tomoyo/common.c5
-rw-r--r--security/tomoyo/common.h2
-rw-r--r--security/tomoyo/securityfs_if.c5
3 files changed, 4 insertions, 8 deletions
diff --git a/security/tomoyo/common.c b/security/tomoyo/common.c
index f89a0333b813..283862aebdc8 100644
--- a/security/tomoyo/common.c
+++ b/security/tomoyo/common.c
@@ -2681,10 +2681,8 @@ out:
2681 * tomoyo_close_control - close() for /sys/kernel/security/tomoyo/ interface. 2681 * tomoyo_close_control - close() for /sys/kernel/security/tomoyo/ interface.
2682 * 2682 *
2683 * @head: Pointer to "struct tomoyo_io_buffer". 2683 * @head: Pointer to "struct tomoyo_io_buffer".
2684 *
2685 * Returns 0.
2686 */ 2684 */
2687int tomoyo_close_control(struct tomoyo_io_buffer *head) 2685void tomoyo_close_control(struct tomoyo_io_buffer *head)
2688{ 2686{
2689 /* 2687 /*
2690 * If the file is /sys/kernel/security/tomoyo/query , decrement the 2688 * If the file is /sys/kernel/security/tomoyo/query , decrement the
@@ -2694,7 +2692,6 @@ int tomoyo_close_control(struct tomoyo_io_buffer *head)
2694 atomic_dec_and_test(&tomoyo_query_observers)) 2692 atomic_dec_and_test(&tomoyo_query_observers))
2695 wake_up_all(&tomoyo_answer_wait); 2693 wake_up_all(&tomoyo_answer_wait);
2696 tomoyo_notify_gc(head, false); 2694 tomoyo_notify_gc(head, false);
2697 return 0;
2698} 2695}
2699 2696
2700/** 2697/**
diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h
index d4f166bc3508..b897d4862016 100644
--- a/security/tomoyo/common.h
+++ b/security/tomoyo/common.h
@@ -958,7 +958,7 @@ const struct tomoyo_path_info *tomoyo_path_matches_group
958(const struct tomoyo_path_info *pathname, const struct tomoyo_group *group); 958(const struct tomoyo_path_info *pathname, const struct tomoyo_group *group);
959int tomoyo_check_open_permission(struct tomoyo_domain_info *domain, 959int tomoyo_check_open_permission(struct tomoyo_domain_info *domain,
960 struct path *path, const int flag); 960 struct path *path, const int flag);
961int tomoyo_close_control(struct tomoyo_io_buffer *head); 961void tomoyo_close_control(struct tomoyo_io_buffer *head);
962int tomoyo_env_perm(struct tomoyo_request_info *r, const char *env); 962int tomoyo_env_perm(struct tomoyo_request_info *r, const char *env);
963int tomoyo_execute_permission(struct tomoyo_request_info *r, 963int tomoyo_execute_permission(struct tomoyo_request_info *r,
964 const struct tomoyo_path_info *filename); 964 const struct tomoyo_path_info *filename);
diff --git a/security/tomoyo/securityfs_if.c b/security/tomoyo/securityfs_if.c
index fcf32783b66b..179a955b319d 100644
--- a/security/tomoyo/securityfs_if.c
+++ b/security/tomoyo/securityfs_if.c
@@ -143,14 +143,13 @@ static int tomoyo_open(struct inode *inode, struct file *file)
143/** 143/**
144 * tomoyo_release - close() for /sys/kernel/security/tomoyo/ interface. 144 * tomoyo_release - close() for /sys/kernel/security/tomoyo/ interface.
145 * 145 *
146 * @inode: Pointer to "struct inode".
147 * @file: Pointer to "struct file". 146 * @file: Pointer to "struct file".
148 * 147 *
149 * Returns 0 on success, negative value otherwise.
150 */ 148 */
151static int tomoyo_release(struct inode *inode, struct file *file) 149static int tomoyo_release(struct inode *inode, struct file *file)
152{ 150{
153 return tomoyo_close_control(file->private_data); 151 tomoyo_close_control(file->private_data);
152 return 0;
154} 153}
155 154
156/** 155/**