aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorPaul Moore <paul.moore@hp.com>2006-11-17 17:38:45 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-02 21:24:06 -0800
commitc6fa82a9dd6160e0bc980cb0401c16bf62f2fe66 (patch)
tree3055b0e8fd0372da0c26726b9762d01078ad593a /include/net
parentcd28786d6d4209ec32a375d92188ec7b4d98779f (diff)
downloadkernel_samsung_smdk4412-c6fa82a9dd6160e0bc980cb0401c16bf62f2fe66.zip
kernel_samsung_smdk4412-c6fa82a9dd6160e0bc980cb0401c16bf62f2fe66.tar.gz
kernel_samsung_smdk4412-c6fa82a9dd6160e0bc980cb0401c16bf62f2fe66.tar.bz2
NetLabel: change netlbl_secattr_init() to return void
The netlbl_secattr_init() function would always return 0 making it pointless to have a return value. This patch changes the function to return void. Signed-off-by: Paul Moore <paul.moore@hp.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/netlabel.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/net/netlabel.h b/include/net/netlabel.h
index ba2f682..4e223aa 100644
--- a/include/net/netlabel.h
+++ b/include/net/netlabel.h
@@ -169,14 +169,12 @@ static inline void netlbl_secattr_cache_free(struct netlbl_lsm_cache *cache)
* @secattr: the struct to initialize
*
* Description:
- * Initialize an already allocated netlbl_lsm_secattr struct. Returns zero on
- * success, negative values on error.
+ * Initialize an already allocated netlbl_lsm_secattr struct.
*
*/
-static inline int netlbl_secattr_init(struct netlbl_lsm_secattr *secattr)
+static inline void netlbl_secattr_init(struct netlbl_lsm_secattr *secattr)
{
memset(secattr, 0, sizeof(*secattr));
- return 0;
}
/**