[SECURITY]: Fix build with CONFIG_SECURITY disabled.
authorDavid S. Miller <davem@sunset.davemloft.net>
Wed, 2 Aug 2006 21:37:06 +0000 (14:37 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 2 Aug 2006 21:37:06 +0000 (14:37 -0700)
include/linux/security.h: In function ‘security_release_secctx’:
include/linux/security.h:2757: warning: ‘return’ with a value, in function returning void

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/security.h

index aa5b8043dc38b1ceded122eeacfbcbbd7cb1ad74..6bc2aad494ffcbca799907f15c005991d5ad2bb7 100644 (file)
@@ -2754,7 +2754,6 @@ static inline int security_secid_to_secctx(u32 secid, char **secdata, u32 *secle
 
 static inline void security_release_secctx(char *secdata, u32 seclen)
 {
-       return -EOPNOTSUPP;
 }
 #endif /* CONFIG_SECURITY */