diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2010-06-16 03:29:59 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-08-02 01:34:35 -0400 |
commit | 8fbe71f0e0ac28a39e4a93694c34d670c2f31e88 (patch) | |
tree | 95dc6db6aaaa31a8876bc99c1531bfc26d0e838c /security/tomoyo/memory.c | |
parent | cb917cf517075a357ce43b74e8a5a57f2c69a734 (diff) |
TOMOYO: Make read function to void.
Read functions do not fail. Make them from int to void.
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/tomoyo/memory.c')
-rw-r--r-- | security/tomoyo/memory.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/security/tomoyo/memory.c b/security/tomoyo/memory.c index 4809febc1acb..8de5333109aa 100644 --- a/security/tomoyo/memory.c +++ b/security/tomoyo/memory.c | |||
@@ -184,7 +184,7 @@ unsigned int tomoyo_quota_for_query; | |||
184 | * | 184 | * |
185 | * Returns memory usage. | 185 | * Returns memory usage. |
186 | */ | 186 | */ |
187 | int tomoyo_read_memory_counter(struct tomoyo_io_buffer *head) | 187 | void tomoyo_read_memory_counter(struct tomoyo_io_buffer *head) |
188 | { | 188 | { |
189 | if (!head->read_eof) { | 189 | if (!head->read_eof) { |
190 | const unsigned int policy | 190 | const unsigned int policy |
@@ -212,7 +212,6 @@ int tomoyo_read_memory_counter(struct tomoyo_io_buffer *head) | |||
212 | tomoyo_io_printf(head, "Total: %10u\n", policy + query); | 212 | tomoyo_io_printf(head, "Total: %10u\n", policy + query); |
213 | head->read_eof = true; | 213 | head->read_eof = true; |
214 | } | 214 | } |
215 | return 0; | ||
216 | } | 215 | } |
217 | 216 | ||
218 | /** | 217 | /** |