Commit 39ecf09b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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: default avatarChris Wright <chrisw@osdl.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d0d0061c
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment