提交 c6fa82a9 编写于 作者: P Paul Moore 提交者: David S. Miller

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: NPaul Moore <paul.moore@hp.com>
Signed-off-by: NJames Morris <jmorris@namei.org>
上级 cd28786d
...@@ -169,14 +169,12 @@ static inline void netlbl_secattr_cache_free(struct netlbl_lsm_cache *cache) ...@@ -169,14 +169,12 @@ static inline void netlbl_secattr_cache_free(struct netlbl_lsm_cache *cache)
* @secattr: the struct to initialize * @secattr: the struct to initialize
* *
* Description: * Description:
* Initialize an already allocated netlbl_lsm_secattr struct. Returns zero on * Initialize an already allocated netlbl_lsm_secattr struct.
* success, negative values on error.
* *
*/ */
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)); memset(secattr, 0, sizeof(*secattr));
return 0;
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册