Commit e9080565 authored by Dmitry Kasatkin's avatar Dmitry Kasatkin Committed by Mimi Zohar

evm: remove unused cleanup functions

EVM cannot be built as a kernel module. Remove the unncessary __exit
functions.
Signed-off-by: default avatarDmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: default avatarMimi Zohar <zohar@linux.vnet.ibm.com>
parent 7163a993
...@@ -45,6 +45,5 @@ extern int evm_calc_hash(struct dentry *dentry, const char *req_xattr_name, ...@@ -45,6 +45,5 @@ extern int evm_calc_hash(struct dentry *dentry, const char *req_xattr_name,
extern int evm_init_hmac(struct inode *inode, const struct xattr *xattr, extern int evm_init_hmac(struct inode *inode, const struct xattr *xattr,
char *hmac_val); char *hmac_val);
extern int evm_init_secfs(void); extern int evm_init_secfs(void);
extern void evm_cleanup_secfs(void);
#endif #endif
...@@ -427,15 +427,6 @@ static int __init init_evm(void) ...@@ -427,15 +427,6 @@ static int __init init_evm(void)
return error; return error;
} }
static void __exit cleanup_evm(void)
{
evm_cleanup_secfs();
if (hmac_tfm)
crypto_free_shash(hmac_tfm);
if (hash_tfm)
crypto_free_shash(hash_tfm);
}
/* /*
* evm_display_config - list the EVM protected security extended attributes * evm_display_config - list the EVM protected security extended attributes
*/ */
......
...@@ -100,9 +100,3 @@ int __init evm_init_secfs(void) ...@@ -100,9 +100,3 @@ int __init evm_init_secfs(void)
error = -EFAULT; error = -EFAULT;
return error; return error;
} }
void __exit evm_cleanup_secfs(void)
{
if (evm_init_tpm)
securityfs_remove(evm_init_tpm);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment