Skip to content

Commit

Permalink
NetLabel: change netlbl_secattr_init() to return void
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Moore authored and David S. Miller committed Dec 3, 2006
1 parent cd28786 commit c6fa82a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/net/netlabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit c6fa82a

Please sign in to comment.