aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/securityfs_if.c
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/tomoyo/securityfs_if.c
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/tomoyo/securityfs_if.c')
-rw-r--r--security/tomoyo/securityfs_if.c5
1 files changed, 2 insertions, 3 deletions
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/**