dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Paul Moore 2006-11-17 17:38:45 -05:00 committed by David S. Miller
parent cd28786d6d
commit c6fa82a9dd
1 changed files with 2 additions and 4 deletions

View File

@ -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;
}
/**