aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-03-20 22:09:55 +0800
committerRichard Weinberger <richard@nod.at>2019-05-07 21:36:39 +0200
commitfb9a5a3edb4c34ac0d7e6996278604e53a43245f (patch)
tree2930e9d1d683824a70b3a1e2eca167303ce3ee9e /fs/ubifs
parentubifs: remove unnecessary #ifdef around fscrypt_ioctl_get_policy() (diff)
downloadlinux-dev-fb9a5a3edb4c34ac0d7e6996278604e53a43245f.tar.xz
linux-dev-fb9a5a3edb4c34ac0d7e6996278604e53a43245f.zip
ubifs: remove unused function __ubifs_shash_final
There is no callers in tree, and can be removed. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Mukesh Ojha <mojha@codeaurora.org> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/auth.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/fs/ubifs/auth.c b/fs/ubifs/auth.c
index 5bf5fd08879e..2a40cccee5bd 100644
--- a/fs/ubifs/auth.c
+++ b/fs/ubifs/auth.c
@@ -147,24 +147,6 @@ struct shash_desc *__ubifs_hash_get_desc(const struct ubifs_info *c)
}
/**
- * __ubifs_shash_final - finalize shash
- * @c: UBIFS file-system description object
- * @desc: the descriptor
- * @out: the output hash
- *
- * Simple wrapper around crypto_shash_final(), safe to be called with
- * disabled authentication.
- */
-int __ubifs_shash_final(const struct ubifs_info *c, struct shash_desc *desc,
- u8 *out)
-{
- if (ubifs_authenticated(c))
- return crypto_shash_final(desc, out);
-
- return 0;
-}
-
-/**
* ubifs_bad_hash - Report hash mismatches
* @c: UBIFS file-system description object
* @node: the node