diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-06-12 16:45:44 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@evo.osdl.org> | 2004-06-12 16:45:44 -0700 |
| commit | 39ecf09b9565b074ad14499a2c91285835c6292f (patch) | |
| tree | 997f080e296dd2a0107aa9892bf642d23610c2b8 /security | |
| parent | d0d0061c24e49ba3f90efc281b4c28d5515795d0 (diff) | |
[PATCH] sparse fix for void return in selinux/hooks.c
From: Chris Wright <chrisw@osdl.org>
CHECK security/selinux/hooks.c
security/selinux/hooks.c:1383:34: warning: return expression in void function
security/selinux/hooks.c:3548:30: warning: return expression in void function
CC security/selinux/hooks.o
From: Mika Kukkonen <mika@osdl.org>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'security')
| -rw-r--r-- | security/selinux/hooks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 8bbfb89d7143..a66f91304ddb 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -1380,7 +1380,7 @@ static void selinux_capset_set(struct task_struct *target, kernel_cap_t *effecti if (error) return; - return secondary_ops->capset_set(target, effective, inheritable, permitted); + secondary_ops->capset_set(target, effective, inheritable, permitted); } static int selinux_capable(struct task_struct *tsk, int cap) @@ -3545,7 +3545,7 @@ static int selinux_msg_msg_alloc_security(struct msg_msg *msg) static void selinux_msg_msg_free_security(struct msg_msg *msg) { - return msg_msg_free_security(msg); + msg_msg_free_security(msg); } /* message queue security operations */ |
