diff options
Diffstat (limited to 'security/tomoyo/common.c')
-rw-r--r-- | security/tomoyo/common.c | 5 |
1 files changed, 1 insertions, 4 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 | */ |
2687 | int tomoyo_close_control(struct tomoyo_io_buffer *head) | 2685 | void 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 | /** |