mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sparse fix for void return in selinux/hooks.c
@ 2004-06-11 20:04 Chris Wright
  0 siblings, 0 replies; only message in thread
From: Chris Wright @ 2004-06-11 20:04 UTC (permalink / raw)
  To: Andrew Morton, Linus Torvalds
  Cc: linux-kernel, Stephen Smalley, James Morris, Mika Kukkonen

  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>

===== security/selinux/hooks.c 1.40 vs edited =====
--- 1.40/security/selinux/hooks.c	2004-05-10 04:25:52 -07:00
+++ edited/security/selinux/hooks.c	2004-06-11 12:54:44 -07:00
@@ -1380,7 +1380,7 @@
 	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 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 */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-11 20:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-11 20:04 [PATCH] sparse fix for void return in selinux/hooks.c Chris Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®