From 8fbe71f0e0ac28a39e4a93694c34d670c2f31e88 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Wed, 16 Jun 2010 16:29:59 +0900 Subject: TOMOYO: Make read function to void. Read functions do not fail. Make them from int to void. Signed-off-by: Tetsuo Handa Signed-off-by: James Morris --- security/tomoyo/memory.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'security/tomoyo/memory.c') 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; * * Returns memory usage. */ -int tomoyo_read_memory_counter(struct tomoyo_io_buffer *head) +void tomoyo_read_memory_counter(struct tomoyo_io_buffer *head) { if (!head->read_eof) { const unsigned int policy @@ -212,7 +212,6 @@ int tomoyo_read_memory_counter(struct tomoyo_io_buffer *head) tomoyo_io_printf(head, "Total: %10u\n", policy + query); head->read_eof = true; } - return 0; } /** -- cgit v1.2.3