Skip to contentSkip to conversation

sparse fix for void return in selinux/hooks.c

PATCH New Chris Wright 1 participant 1 message Jun 11, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparse fix for void return in selinux/hooks.c

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 <[email protected]>

===== security/selinux/hooks.c 1.40 vs edited =====

security/selinux/hooks.c +2 -2
@@ -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 */